[Mapserver-users] OGC WMS GetfeatureInfo - MapServer 4.2

Julien, Heryk hjulien at nrcan.gc.ca
Fri Jul 16 08:10:11 PDT 2004


Thanks for the clarification.
But, I do think having "layers" and "query_layers" is a redundant since a
GetFeatureInfo request doesn't generate a map.
But now I understand that this is imposed by the OGC spec, not MapServer.
BTW, thanks Tom for your course on MapServer's OGC configurations last
spring in Ottawa.
Your examples where very useful.

Héryk Julien
GSC-Québec
NRCan


-----Message d'origine-----
De : Daniel Morissette [mailto:dmorissette at dmsolutions.ca]
Envoyé : 15 juillet, 2004 17:54
À : Julien, Heryk
Cc : mapserver-users at lists.gis.umn.edu
Objet : Re: [Mapserver-users] OGC WMS GetfeatureInfo - MapServer 4.2


Julien, Heryk wrote:
> 
> 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.
> 

A GetFeatureInfo is performed by clicking on a map produced using a 
GetMap call, so you need to indicate to the server which map you clicked 
on, that's why you need to carry the GetMap requests.

The parameters listed in table 9 are only those you need to add on top 
of the corresponding GetMap parameters. This is indicated, but maybe not 
clearly enough, in 7.3.1 page 39:

   "Because the WMS protocol is stateless, the GetFeatureInfo request
    indicates to the WMS what map the user is viewing by including most
    of the original GetMap request parameters (all but VERSION and
    REQUEST)."

Of course LAYERS may be considered redundant in this context, but there 
may be contexts that I can't think of right now where it is useful, so 
instead of documenting a bunch of exceptions the spec just says: "start 
with the GetMap parameters, and add the GetFeatureInfo parameters on top."

Note that in QUERY_LAYERS you should only pass the layers you want to 
query, this will often be a subset of the LAYERS parameter.

HTH

Daniel
-- 
------------------------------------------------------------
  Daniel Morissette               dmorissette at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------




More information about the MapServer-users mailing list