<div dir="ltr">Ian&#39;s reply is really good. If you&#39;re lazy you can just copy the *.dll into the same directory as shtree.exe<div><br></div><div>But be sure that you update the qix index immediately after edits occur. You&#39;re better off w/o an index than with an out of date index.</div><div><br></div><div>Best regards,</div><div>Rich</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 15, 2015 at 8:12 AM, Mark Volz <span dir="ltr">&lt;<a href="mailto:MarkVolz@co.lyon.mn.us" target="_blank">MarkVolz@co.lyon.mn.us</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Hello,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Thanks you everyone for your help.  I will test out the ideas and see if they work!<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Sincerely,<u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Mark Volz<u></u><u></u></span></b></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Ian Tidy [mailto:<a href="mailto:IANT@napier.govt.nz" target="_blank">IANT@napier.govt.nz</a>]
<br>
<b>Sent:</b> Tuesday, July 14, 2015 6:53 PM<br>
<b>To:</b> Mark Volz; Richard Greenwood<br>
<b>Cc:</b> <a href="mailto:ms4w-users@lists.maptools.org" target="_blank">ms4w-users@lists.maptools.org</a><br>
<b>Subject:</b> RE: [MS4W-Users] using shptree.exe on a server<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">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.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">The trick is to make sure that the paths where MS4W, the executable and any required DLL is available to the user.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Your batch file could contain something like (I have not tested this)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">@echo off<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">SET OGR_HOME=\ms4w\tools\gdal-ogr<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">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%<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">SET GDAL_DATA=\ms4w\gdaldata<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">SET GDAL_DRIVER_PATH=\ms4w\gdalplugins<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">SET PROJ_LIB=\ms4w\proj\nad<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">set SDK_ROOT=%~dp0<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">set SDK_ROOT=%SDK_ROOT:\\=\%<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">SET DEST=%SDK_ROOT%lds<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">set SDK_TOOLS=%SDK_ROOT%tools\<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">:: echo %SDK_ROOT%<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">SET PYTHONPATH=%SDK_TOOLS%gdal\python;%SDK_TOOLS%ms\python<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">&quot;%SHP_TREE%\shptree.exe&quot; %1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I extracted this from a batch file that I use for creating shape files from a WFS feed.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Regards,<u></u><u></u></span></p>
<table border="0" cellpadding="0" width="600" style="width:6.25in">
<tbody>
<tr>
<td width="222" style="width:166.5pt;padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" style="line-height:115%"><a href="http://www.napier.govt.nz/" target="_blank"><span style="font-size:10.0pt;line-height:115%;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d;text-decoration:none"><img border="0" width="220" height="89" src="cid:image001.png@01D0BEDE.5FA488E0" alt="Description: image001"></span></a><span style="font-size:10.0pt;line-height:115%;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u><u></u></span></p>
</td>
<td width="372" style="width:279.0pt;padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" style="line-height:115%"><b><span style="font-size:10.0pt;line-height:115%;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Ian Tidy</span></b><span style="font-size:10.0pt;line-height:115%;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal" style="line-height:115%"><span style="font-size:10.0pt;line-height:115%;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">GIS Developer/Analyst<u></u><u></u></span></p>
<p class="MsoNormal" style="line-height:115%"><span style="font-size:10.0pt;line-height:115%;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Napier City Council, Private Bag 6010, Napier 4142, NZ<u></u><u></u></span></p>
<p class="MsoNormal" style="line-height:115%"><span style="font-size:10.0pt;line-height:115%;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Phone: <a href="tel:%2B64%206%20835%207579%20x8115" value="+6468357579" target="_blank">+64 6 835 7579 x8115</a>  Fax: <a href="tel:%2B64%206%20834%204195" value="+6468344195" target="_blank">+64 6 834 4195</a><u></u><u></u></span></p>
<p class="MsoNormal" style="line-height:115%"><span style="font-size:10.0pt;line-height:115%;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><a href="http://www.napier.govt.nz/" target="_blank"><span style="color:#1f497d">http://www.napier.govt.nz</span></a>
 | <a href="mailto:ian.tidy@napier.govt.nz" target="_blank">mailto:ian.tidy@napier.govt.nz</a><u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
</div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">
<a href="mailto:ms4w-users-bounces@lists.maptools.org" target="_blank">ms4w-users-bounces@lists.maptools.org</a> [<a href="mailto:ms4w-users-bounces@lists.maptools.org" target="_blank">mailto:ms4w-users-bounces@lists.maptools.org</a>]
<b>On Behalf Of </b>Mark Volz<br>
<b>Sent:</b> Wednesday, 15 July 2015 2:21 a.m.<br>
<b>To:</b> Richard Greenwood<br>
<b>Cc:</b> <a href="mailto:ms4w-users@lists.maptools.org" target="_blank">ms4w-users@lists.maptools.org</a><br>
<b>Subject:</b> Re: [MS4W-Users] using shptree.exe on a server<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-NZ"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Richard,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">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.  <u></u>
<u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">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.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">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.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Thank You<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Sincerely,<u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Mark Volz</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Richard Greenwood [<a href="mailto:richard.greenwood@gmail.com" target="_blank">mailto:richard.greenwood@gmail.com</a>]
<br>
<b>Sent:</b> Monday, July 13, 2015 8:28 PM<br>
<b>To:</b> Mark Volz<br>
<b>Cc:</b> <a href="mailto:ms4w-users@lists.maptools.org" target="_blank">ms4w-users@lists.maptools.org</a><br>
<b>Subject:</b> Re: [MS4W-Users] using shptree.exe on a server<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">I&#39;m pretty sure that shptree can index a shapefile on a network share. But I don&#39;t think I follow you.
<br>
   “net use n: <a>\\myserver\myshare</a>”<br>
Just maps the directory to N: and has nothing to do with shptree. It shouldn&#39;t throw any errors and if sucessful you should be able to do
<br>
   dir n:\ <br>
and see your data, and the <br>
   shptree N:\some.shp<br>
and get some.qix<br>
<br>
Rich<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Mon, Jul 13, 2015 at 1:10 PM, Mark Volz &lt;<a href="mailto:MarkVolz@co.lyon.mn.us" target="_blank">MarkVolz@co.lyon.mn.us</a>&gt; wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Hello,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">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: <a>\\myserver\myshare</a>” I received an error that libmap.dll is missing.
<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Has anyone had any success with running shptree on a server, or do we have to keep it on our local machine?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Thanks<u></u><u></u></p>
<p class="MsoNormal">Mark V<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
MS4W-Users mailing list<br>
<a href="mailto:MS4W-Users@lists.maptools.org" target="_blank">MS4W-Users@lists.maptools.org</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/ms4w-users" target="_blank">http://lists.maptools.org/mailman/listinfo/ms4w-users</a><u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Richard W. Greenwood, PLS<br>
<a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a><u></u><u></u></p>
</div>
</div>
</div>
</div>
<div class="MsoNormal" align="center" style="text-align:center"><span lang="EN-NZ">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span lang="EN-NZ">This e-mail message has been scanned for Viruses and Content and cleared by
<strong><span style="color:#400080">MailMarshal </span></strong><u></u><u></u></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span lang="EN-NZ">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span lang="EN-NZ"><a href="http://www.facebook.com/#!/NapierCityCouncil?fref=ts" target="_blank"><span style="text-decoration:none"><img border="0" src="http://www.data.napier.govt.nz/data/images/FindUs.jpg" alt="Find Us on Facebook"></span></a><u></u><u></u></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span lang="EN-NZ">
<hr size="2" width="100%" align="center">
</span></div>
<p><span lang="EN-NZ">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.<u></u><u></u></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span lang="EN-NZ">
<hr size="2" width="100%" align="center">
</span></div>
</div></div></div>
</div>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Richard W. Greenwood, PLS<br><a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a></div></div>
</div>