CGI problem

Steve Lime steve.lime at DNR.STATE.MN.US
Mon Aug 23 13:14:44 PDT 2004


Steve: Have you tried a more recent verion? Just want to rule out the
obvious...

I can't think of anything obvious. Execution of those to applications
is really similar. The one
difference related to projection handling is some auto projection
capabilities that the CGI has
but that only comes into play when you're setting mapext or mapxy from
a URL.

I guess I'd recommend sharing the mapfiles, or ideally a test case we/I
could use in debugging
the problems.

Steve

>>> Stephen Woodbridge <woodbri at SWOODBRIDGE.COM> 8/21/2004 11:47:52 AM
>>>
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