[Mapserver-users] OGC WMS GetfeatureInfo - MapServer 4.2

Zamil Murji Zamil.Murji at divestco.com
Thu Jul 15 15:33:24 EDT 2004


Hi,

My guess would be that you have that layer's status set to OFF. Therefore, you 
have to explicity turn it on using the LAYERS=. If the layer were set to 
DEFAULT, then you wouldn't need that extra LAYERS= at the end of your url.

Just a thought,
Zamil

-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu]On Behalf Of Julien,
Heryk
Sent: Thursday, July 15, 2004 12:53 PM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] OGC WMS GetfeatureInfo - MapServer 4.2


Hi,
I was wondering why do we have to specify both "LAYERS" and "QUERY_LAYERS"
in a GetFeatureInfo request.

For example why doesn't this request work (data not yet public)?
http://s5-stf-ngwd.nrn.nrcan.gc.ca/ngwd/WebScripts/mapserv.exe?map=c:\ngwd\m
ap\mgwi.map&version=1.1.1&service=WMS&request=GetFeatureInfo&WIDTH=600&HEIGH
T=400&BBOX=-71,40.6,-58.8,50.33&SRS=EPSG:4269&Query_Layers=Stations_2002&X=3
06&Y=172&INFO_FORMAT=Text/html&

However when I add "LAYERS" the request is now valid!
http://s5-stf-ngwd.nrn.nrcan.gc.ca/ngwd/WebScripts/mapserv.exe?map=c:\ngwd\m
ap\mgwi.map&version=1.1.1&service=WMS&request=GetFeatureInfo&WIDTH=600&HEIGH
T=400&BBOX=-71,40.6,-58.8,50.33&SRS=EPSG:4269&Query_Layers=Stations_2002&X=3
06&Y=172&INFO_FORMAT=Text/html&LAYERS=Stations_2002&

So I'm passing the same information in two different parameters
(Query_Layers and Layers)!
In table 9 (The Parameters of a GetFeatureInfo Request p.40) of the OGC
specs (http://www.opengis.org/docs/01-068r3.pdf) the layers param is not
needed in a GetFeatureInfo request.

Anyone can help me?

Héryk Julien
NRCan

_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list