[mapserver-users] GetFeatureInfo - get wms_title

Daniel Morissette dmorissette at mapgears.com
Wed Dec 15 09:16:33 PST 2010


Steve.Toutant at inspq.qc.ca wrote:
> 
> Hi,
> I use INFO_FORMAT=gml for a GetFeatureInfo request. It works, but I
> would like to get the wms_title instead of the layers name.
> 
> In the UI people are seeing the title not the name. Showing the name of
> a layer is useless in our context.
> Is it possible to retreive the wms_title if it exists?


It seems that there is a nice undocumented feature to do what you want
(I found it in the code just now):

Add a "wms_layername" metadata to your layer definition and this value
will be used as the layer name in the GetFeatureInfo GML output. (The
default is to use the layer name + "_layer" (e.g. "parks_layer" for a
layer named "parks")

Daniel
-- 
Daniel Morissette
http://www.mapgears.com/



More information about the MapServer-users mailing list