<br>Hi Frank,<br><br>So I need to copy everything from FWTools/bin to Apache2.2/cgi-bin and instead of calling your &quot;mapserv_landsat&quot; script instead call mapserv.exe within getCapabilitites and getMap WMS requests but how do I reference the mapfile within these requests?
<br><br>Thanks,<br><br>John J. Mitchell<br><br><div><span class="gmail_quote">On 11/24/06, <b class="gmail_sendername">Frank Warmerdam</b> &lt;<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">John Mitchell wrote:<br>&gt; Hi Frank,<br>&gt;<br>&gt; Thanks for the information.&nbsp;&nbsp;I had a couple of questions:
<br>&gt;<br>&gt; You said below:<br>&gt; &quot;to<br>&gt; I am using the &quot;standalone&quot; FWTools binaries for linux<br>&gt; ( <a href="http://fwtools.maptools.org">http://fwtools.maptools.org</a> &lt;<a href="http://fwtools.maptools.org/">
http://fwtools.maptools.org/</a>&gt;).&nbsp;&nbsp;In my<br>&gt; Apache cgi-bin directory I have<br>&gt; the script mapserv_landsat which looks like this:<br>&gt;<br>&gt; -----------------------<br>&gt; #!/bin/sh<br>&gt;<br>&gt; export MS_MAPFILE=/home/warmerda/maps
<br>&gt; /landsat.map<br>&gt; . /opt/FWTools-1.0.0a2/fwtools_env.sh<br>&gt; exec /opt/FWTools-1.0.0a2/bin/mapserv &quot;$*&quot;<br>&gt; &quot;<br>&gt;<br>&gt; How would the above be revised on a windows system?&nbsp;&nbsp;The exec statement
<br>&gt; I would replace the /opt with /program files since FWTools is within the<br>&gt; &quot;program files&quot; folder on windows.&nbsp;&nbsp;What about the<br>&gt; . /opt/FWTools-1.0.0a2/fwtools_env.sh statement?&nbsp;&nbsp;I don't see anything
<br>&gt; called fwtools_env.sh within the FWTools folder.&nbsp;&nbsp;What is #!/bin/sh is<br>&gt; this a linux statement?<br><br><br>John,<br><br>Actually I ran into this issue the other day as well - how to use<br>the FWTools mapserver cgi on windows.&nbsp;&nbsp;If you just copy everything from
<br>FWTools-1.0.9\bin into your cgi-bin directory things will mostly work.<br>But because some environment variables (normally set by bin\setfwenv.bat)<br>won't be set, things like datum shifting, some EPSG lookups and a few
<br>other subtle issues won't work.&nbsp;&nbsp;You can presumably introduce SetEnv<br>calls in your apache configuration for all these environment variables.<br><br>But altogether this is not a very satisfactory situation.&nbsp;&nbsp;What I really
<br>would like to be able to do is have the cgi run a .bat file which sets<br>calls setfwenv.bat and then invokes the executable.<br><br>I can't imagine copying all that &quot;junk&quot; into an externally invokable<br>cgi-bin directory is all that safe.
<br><br>Best regards,<br>--<br>---------------------------------------+--------------------------------------<br>I set the clouds in motion - turn up&nbsp;&nbsp; | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com
</a><br>light and sound - activate the windows | <a href="http://pobox.com/~warmerdam">http://pobox.com/~warmerdam</a><br>and watch the world go round - Rush&nbsp;&nbsp;&nbsp;&nbsp;| President OSGeo, <a href="http://osgeo.org">http://osgeo.org
</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>John J. Mitchell