Bug 430 - WMSBrowser not handling map=pathtomapfile properly
: WMSBrowser not handling map=pathtomapfile properly
Status: RESOLVED FIXED
: Chameleon
Widget
: 1.99
: PC Windows 2000
: P2 major
: 1.99 beta 4
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-06-01 10:16 by
Modified: 2004-12-02 21:28 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-06-01 10:16:08
WMSBrowser not previewing or adding a WMS layer to a map if the URL includes 
mapserv.exe?map=path to mapfile&etc.
The mapfile is not being handled properly and the forward slashes or backward
slashes disappear, and mapfile can't be found
------- Comment #1 From 2004-06-01 10:34:23 -------
question:  does it make a difference if you change the path to the map file to
include forward slashes instead of back slashes?
------- Comment #2 From 2004-06-01 11:15:03 -------
no Paul, no difference with forward or backward slashes
------- Comment #3 From 2004-07-08 11:29:25 -------
Changed target to 1.99 beta 3.
------- Comment #4 From 2004-10-07 13:57:18 -------
this works now.  With the ms4w package, I tested the following server

http://localhost/cgi-bin/mapserv_42.exe?map=/ms4w/apps/chameleon/samples/map/chameleon.map

My initial test did not work (no previews) because the preview uses epsg:4326 by
default and the map file (chameleon.map) does not supply projections for the
layers (only at the map level).  The effect of this is that mapserver does not
reproject the layers.

Adding an appropriate projection object to each layer enabled me to preview it
and add it to the map file.

This is (apparently) not a bug in mapserver, just the way it works.  In fact,
when using the WMS interface and getting the capabilities of this map file, you
see warnings in the xml document ...  but they are specified as comments so it
won't be possible to find them programmatically (or its not easy so I'm not
interested in trying it right now).

I've committed the changes to chameleon.map.  No other changes were required.
------- Comment #5 From 2004-10-25 08:26:25 -------
Changed target for verification to 1.99 RC 1.