<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-NZ link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";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.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>The trick is to make sure that the paths where MS4W, the executable and any required DLL is available to the user.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Your batch file could contain something like (I have not tested this)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>@echo off<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>SET OGR_HOME=\ms4w\tools\gdal-ogr<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";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%<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>SET GDAL_DATA=\ms4w\gdaldata<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>SET GDAL_DRIVER_PATH=\ms4w\gdalplugins<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>SET PROJ_LIB=\ms4w\proj\nad<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>set SDK_ROOT=%~dp0<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>set SDK_ROOT=%SDK_ROOT:\\=\%<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>SET DEST=%SDK_ROOT%lds<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>set SDK_TOOLS=%SDK_ROOT%tools\<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>:: echo %SDK_ROOT%<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>SET PYTHONPATH=%SDK_TOOLS%gdal\python;%SDK_TOOLS%ms\python<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&quot;%SHP_TREE%\shptree.exe&quot; %1<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I extracted this from a batch file that I use for creating shape files from a WFS feed.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>Regards,<o:p></o:p></span></p><table class=MsoNormalTable border=0 cellpadding=0 width=600 style='width:450.0pt'><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/"><span style='font-size:10.0pt;line-height:115%;font-family:"Calibri","sans-serif";color:#1F497D;text-decoration:none'><img border=0 width=220 height=89 id="Picture_x0020_2" src="cid:image001.png@01D0BEF4.C3081990" alt="Description: image001"></span></a><span style='font-size:10.0pt;line-height:115%;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p></o:p></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:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>Ian Tidy</span></b><span style='font-size:10.0pt;line-height:115%;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p></o:p></span></p><p class=MsoNormal style='line-height:115%'><span style='font-size:10.0pt;line-height:115%;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>GIS Developer/Analyst<o:p></o:p></span></p><p class=MsoNormal style='line-height:115%'><span style='font-size:10.0pt;line-height:115%;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>Napier City Council, Private Bag 6010, Napier 4142, NZ<o:p></o:p></span></p><p class=MsoNormal style='line-height:115%'><span style='font-size:10.0pt;line-height:115%;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>Phone: +64 6 835 7579 x8115&nbsp;&nbsp;Fax: +64 6 834 4195<o:p></o:p></span></p><p class=MsoNormal style='line-height:115%'><span style='font-size:10.0pt;line-height:115%;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><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">mailto:ian.tidy@napier.govt.nz</a></span><span style='font-size:10.0pt;line-height:115%;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p></o:p></span></p></td></tr></table><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p></div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> ms4w-users-bounces@lists.maptools.org [mailto:ms4w-users-bounces@lists.maptools.org] <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> ms4w-users@lists.maptools.org<br><b>Subject:</b> Re: [MS4W-Users] using shptree.exe on a server<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Richard,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I apologize for the confusion.&nbsp; 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.&nbsp; <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";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...&nbsp; So I thought maybe MS4W (or shapetree) might possibly work if we link the network share something like N:\MS4W&nbsp; as opposed to N:\GISScripts\Update\MS4W.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";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.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thank You<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Sincerely,<o:p></o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-family:"Calibri","sans-serif";color:#1F497D'>Mark Volz</span></b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Richard Greenwood [<a href="mailto:richard.greenwood@gmail.com">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">ms4w-users@lists.maptools.org</a><br><b>Subject:</b> Re: [MS4W-Users] using shptree.exe on a server<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><div><p class=MsoNormal><span lang=EN-US>I'm pretty sure that shptree can index a shapefile on a network share. But I don't think I follow you. <br>&nbsp; &nbsp;“net use n: <a href="file:///\\myserver\myshare">\\myserver\myshare</a>”<br>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 <br>&nbsp; &nbsp;dir n:\ <br>and see your data, and the <br>&nbsp; &nbsp;shptree N:\some.shp<br>and get some.qix<br><br>Rich<o:p></o:p></span></p><div><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p></div></div><div><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><div><p class=MsoNormal><span lang=EN-US>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:<o:p></o:p></span></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>Hello,<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>&nbsp;<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>I was wondering can shptree.exe run on a networked server drive?&nbsp; I would like to move all of my Geoprocessing scripts, including the qix file generation onto a server.&nbsp; When I tried to run “net use n: <a href="file:///\\myserver\myshare">\\myserver\myshare</a>” I received an error that libmap.dll is missing. <o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>&nbsp;<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>Has anyone had any success with running shptree on a server, or do we have to keep it on our local machine?<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>&nbsp;<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>Thanks<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>Mark V<o:p></o:p></span></p></div></div><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US><br>_______________________________________________<br>MS4W-Users mailing list<br><a href="mailto:MS4W-Users@lists.maptools.org">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><o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-US><br><br clear=all><o:p></o:p></span></p><div><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p></div><p class=MsoNormal><span lang=EN-US>-- <o:p></o:p></span></p><div><div><p class=MsoNormal><span lang=EN-US>Richard W. Greenwood, PLS<br><a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a><o:p></o:p></span></p></div></div></div></div></div>
<HR>
This e-mail message has been scanned for Viruses and Content and cleared by 
<FONT color=#400080><STRONG>MailMarshal </STRONG></FONT>
<HR>

<A href="http://www.facebook.com/#!/NapierCityCouncil?fref=ts"><IMG 
border=0 alt="Find Us on Facebook" 
src="http://www.data.napier.govt.nz/data/images/FindUs.jpg"></A> 
<HR>

<P></P>
<P>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.</P>
<HR>
</body></html>