I need the ability to be able to display ECW and JPEG2000 format files within MapServer via a Community Mapbuilder client which sends WMS requests for the images to MapServer
John Mitchell
mitchelljj98 at GMAIL.COM
Fri Nov 24 08:36:04 PST 2006
Hi Frank,
So I need to copy everything from FWTools/bin to Apache2.2/cgi-bin and
instead of calling your "mapserv_landsat" script instead call
mapserv.exewithin getCapabilitites and getMap WMS requests but how do
I reference the
mapfile within these requests?
Thanks,
John J. Mitchell
On 11/24/06, Frank Warmerdam <warmerdam at pobox.com> wrote:
>
> John Mitchell wrote:
> > Hi Frank,
> >
> > Thanks for the information. I had a couple of questions:
> >
> > You said below:
> > "to
> > 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,
> warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush | President OSGeo, http://osgeo.org
>
>
--
John J. Mitchell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20061124/ef112374/attachment.htm>
More information about the MapServer-users
mailing list