<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello, <br>
I am trying to get a basic python mapscript wrapper working on my
localhost. The following full style URL works well:<a
href="http://127.0.0.1:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/water_quality/water_quality.map&SERVICE=WMS&map=/ms4w/apps/water_quality%20/water_quality.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=wq_stations_pgsql&CRS=EPSG:4326&BBOX=30.00,-87.6,31.00,-87.26&STYLES=&WIDTH=600&HEIGHT=600&FORMAT=image/png">
http://127.0.0.1:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/water_quality/water_quality.map&SERVICE=WMS&map=/ms4w/apps/water_quality%20/water_quality.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=wq_stations_pgsql&CRS=EPSG:4326&BBOX=30.00,-87.6,31.00,-87.26&STYLES=&WIDTH=600&HEIGHT=600&FORMAT=image/png</a>
<p class="MsoNormal">I am trying to use the following python
mapscript as:</p>
<p class="MsoNormal">import mapscript<br>
req = mapscript.OWSRequest()<br>
req.loadParams()<br>
map = mapscript.mapObj(
'../../apps/water_quality/water_quality.map' )<br>
map.OWSDispatch( req )</p>
<p class="MsoNormal">and then I use the following URL to attempt to
use the mapscript: <a class="moz-txt-link-freetext"
href="http://127.0.0.1:8080/cgi-bin/water_quality?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=wq_stations_pgsql&CRS=EPSG:4326&BBOX=30.00,-87.6,31.00,-87.26&STYLES=&WIDTH=600&HEIGHT=600&FORMAT=image/png">http://127.0.0.1:8080/cgi-bin/water_quality?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=wq_stations_pgsql&CRS=EPSG:4326&BBOX=30.00,-87.6,31.00,-87.26&STYLES=&WIDTH=600&HEIGHT=600&FORMAT=image/png
</a>but it doesn't come back with the expected map, but rather a
tiny grey square with two white little squares diagonal in it. <br>
</p>
<p class="MsoNormal">Any help would be appreciated. Derek</p>
</body>
</html>