CGI problem

Stephen Woodbridge woodbri at SWOODBRIDGE.COM
Sat Aug 21 12:47:52 EDT 2004


Hi all,

I have run into a strange problem using mpaserver 4.01 and the CGI
interface.

I am using a URL like:

http:/server/cgi-bin/mapserv?mode=map&map=/path/to/mapfile/map&layers=all

This works fine and gives me a map image based on the extents of my map
as defined in the mapfile with all layers turned on if the mapfile is
not projected. If the mapfile has a projection block, I just get an
image of the background color.

If I take the same mapfiles (projected and not projected) and run them
through shp2img like:

shp2img -m /path/to/mapfile -o map.png

both mapfiles return the expected image just fine so it looks like it
has something to do with the CGI interface. I'm thinking possibly the
interpretation of the extents values in the projected mapfile but maybe not.

On the URL, I have tried various combinations of the other CGI
parameters to work around the problem, but I have not found a solution.

Does anyone have any ideas on this?
Was this a bug that was fixed post 4.01?

Thanks,
   -Steve W.



More information about the mapserver-users mailing list