[MS4W-Users] using shptree.exe on a server

Mark Volz MarkVolz at co.lyon.mn.us
Wed Jul 15 09:12:29 EST 2015


Thanks you everyone for your help.  I will test out the ideas and see if they work!

Mark Volz

From: Ian Tidy [mailto:IANT at napier.govt.nz]
Sent: Tuesday, July 14, 2015 6:53 PM
To: Mark Volz; Richard Greenwood
Cc: ms4w-users at lists.maptools.org
Subject: RE: [MS4W-Users] using shptree.exe on a server

You can run shptree from any path to any subject on another path (but I don’t think a UNC).  You are probably best to have a batch file that you can call which is within you standard path.

The trick is to make sure that the paths where MS4W, the executable and any required DLL is available to the user.

Your batch file could contain something like (I have not tested this)
@echo off
SET OGR_HOME=\ms4w\tools\gdal-ogr
SET PATH=\ms4w\Apache\cgi-bin;\ms4w\tools\gdal-ogr;\ms4w\tools\mapserv;\ms4w\tools\shapelib;\ms4w\proj\bin;\ms4w\tools\shp2tile;\ms4w\tools\shpdiff;\ms4w\tools\avce00;\ms4w\python\gdal;%PATH%
SET GDAL_DATA=\ms4w\gdaldata
SET GDAL_DRIVER_PATH=\ms4w\gdalplugins
SET PROJ_LIB=\ms4w\proj\nad
set SDK_ROOT=%~dp0
set SDK_ROOT=%SDK_ROOT:\\=\%
set SDK_TOOLS=%SDK_ROOT%tools\
:: echo %SDK_ROOT%
SET PYTHONPATH=%SDK_TOOLS%gdal\python;%SDK_TOOLS%ms\python

"%SHP_TREE%\shptree.exe" %1

I extracted this from a batch file that I use for creating shape files from a WFS feed.

[Description: image001]<http://www.napier.govt.nz/>

Ian Tidy
GIS Developer/Analyst
Napier City Council, Private Bag 6010, Napier 4142, NZ
Phone: +64 6 835 7579 x8115  Fax: +64 6 834 4195
http://www.napier.govt.nz<http://www.napier.govt.nz/> | mailto:ian.tidy at napier.govt.nz

From: ms4w-users-bounces at lists.maptools.org<mailto:ms4w-users-bounces at lists.maptools.org> [mailto:ms4w-users-bounces at lists.maptools.org] On Behalf Of Mark Volz
Sent: Wednesday, 15 July 2015 2:21 a.m.
To: Richard Greenwood
Cc: ms4w-users at lists.maptools.org<mailto:ms4w-users at lists.maptools.org>
Subject: Re: [MS4W-Users] using shptree.exe on a server


I apologize for the confusion.  What I would really like to know is if it is possible to have the shptree executable on the server so that anyone on the network can build the qix files without having a copy of ms4w on their local machine.

The reason why I mentioned connecting ms4w to a network drive is that I thought at one time I read something that MS4W must be installed on the root folder of a computer such as C:\MS4W or D:\MS4W...  So I thought maybe MS4W (or shapetree) might possibly work if we link the network share something like N:\MS4W  as opposed to N:\GISScripts\Update\MS4W.

I doubt it is possible to run shptree and the associated ms4w files on the server, but if it is then it would remove the dependency of having MS4W installed on every computer that might be used to push out updates.
Thank You

Mark Volz

From: Richard Greenwood [mailto:richard.greenwood at gmail.com]
Sent: Monday, July 13, 2015 8:28 PM
To: Mark Volz
Cc: ms4w-users at lists.maptools.org<mailto:ms4w-users at lists.maptools.org>
Subject: Re: [MS4W-Users] using shptree.exe on a server

I'm pretty sure that shptree can index a shapefile on a network share. But I don't think I follow you.
   “net use n: \\myserver\myshare<file:///\\myserver\myshare>”
Just maps the directory to N: and has nothing to do with shptree. It shouldn't throw any errors and if sucessful you should be able to do
   dir n:\
and see your data, and the
   shptree N:\some.shp
and get some.qix


On Mon, Jul 13, 2015 at 1:10 PM, Mark Volz <MarkVolz at co.lyon.mn.us<mailto:MarkVolz at co.lyon.mn.us>> wrote:

I was wondering can shptree.exe run on a networked server drive?  I would like to move all of my Geoprocessing scripts, including the qix file generation onto a server.  When I tried to run “net use n: \\myserver\myshare<file:///\\myserver\myshare>” I received an error that libmap.dll is missing.

Has anyone had any success with running shptree on a server, or do we have to keep it on our local machine?

Mark V

MS4W-Users mailing list
MS4W-Users at lists.maptools.org<mailto:MS4W-Users at lists.maptools.org>

Richard W. Greenwood, PLS
This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal
[Find Us on Facebook]<http://www.facebook.com/#!/NapierCityCouncil?fref=ts>

This communication, including any attachments, is confidential. If you are not the intended recipient, please delete it. Thank you. Refer to the Electronic Transactions Act 2002.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20150715/baa89291/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 21189 bytes
Desc: image001.png
Url : http://lists.maptools.org/pipermail/ms4w-users/attachments/20150715/baa89291/attachment-0001.png 

More information about the MS4W-Users mailing list