[mapserver-users] GetFeatureInfo - get wms_title
Steve.Toutant at inspq.qc.ca
Steve.Toutant at inspq.qc.ca
Wed Dec 15 11:28:01 PST 2010
wms_layername works.
the given name should not have spaces in it. Otherwise the MGL is not
valid.
Steve
Daniel Morissette <dmorissette at mapgears.com>@lists.osgeo.org
Envoyé par : mapserver-users-bounces at lists.osgeo.org
2010-12-15 12:16
A
mapserver-users at lists.osgeo.org
cc
Objet
Re: [mapserver-users] GetFeatureInfo - get wms_title
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/
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20101215/e0991c8d/attachment.htm>
More information about the MapServer-users
mailing list