[Mapserver-users] OGC WMS GetfeatureInfo - MapServer 4.2

Julien, Heryk hjulien at nrcan.gc.ca
Thu Jul 15 14:53:20 EDT 2004


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




More information about the mapserver-users mailing list