John Mitchell wrote:
Hi Frank,
Thanks for the information. I had a couple of questions:
You said below:
"
I am using the "standalone" FWTools binaries for linux
( http://fwtools.maptools.org <http://fwtools.maptools.org/>). In my
Apache cgi-bin directory I have
the script mapserv_landsat which looks like this:
-----------------------
#!/bin/sh
export MS_MAPFILE=/home/warmerda/maps
/landsat.map
. /opt/FWTools-1.0.0a2/fwtools_env.sh
exec /opt/FWTools-1.0.0a2/bin/mapserv "$*"
"
How would the above be revised on a windows system? The exec statement
I would replace the /opt with /program files since FWTools is within the
"program files" folder on windows. What about the
. /opt/FWTools-1.0.0a2/fwtools_env.sh statement? I don't see anything
called fwtools_env.sh within the FWTools folder. What is #!/bin/sh is
this a linux statement?
John,
Actually I ran into this issue the other day as well - how to use
the FWTools mapserver cgi on windows. If you just copy everything from
FWTools-1.0.9\bin into your cgi-bin directory things will mostly work.
But because some environment variables (normally set by bin\setfwenv.bat)
won't be set, things like datum shifting, some EPSG lookups and a few
other subtle issues won't work. You can presumably introduce SetEnv
calls in your apache configuration for all these environment variables.
But altogether this is not a very satisfactory situation. What I really
would like to be able to do is have the cgi run a .bat file which sets
calls setfwenv.bat and then invokes the executable.
I can't imagine copying all that "junk" into an externally invokable
cgi-bin directory is all that safe.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, [EMAIL PROTECTED]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org