[mapserver-users] CGI wrapper scripts
P Kishor
punk.kish at gmail.com
Wed Nov 17 09:47:12 PST 2010
On Wed, Nov 17, 2010 at 11:20 AM, David Hildebrand
<David.Hildebrand at afsc.ca> wrote:
> The MapServer documentation has an example of CGI wrapper scripts for a
> UNIX environment. Would there be an equivalent Windows form I could
> use? I was thinking of using PERL.
>
You could just write one based on the shell wrapper script. Something
like (untested)
$mapserv = "/path/to/mapserv.exe";
$mapfile = "/path/to/mapfile.map";
if ($ENV{'REQUEST_METHOD'} eq 'GET') {
$ENV{'QUERY_STRING'} .= "map=$mapfile";
exec($mapserv);
}
else {
die "Sorry, I only understand GET requests\n";
}
--
Puneet Kishor http://www.punkish.org
Carbon Model http://carbonmodel.org
Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
Nelson Institute, UW-Madison http://www.nelson.wisc.edu
-----------------------------------------------------------------------
Assertions are politics; backing up assertions with evidence is science
=======================================================================
More information about the MapServer-users
mailing list