<br><font size=2 face="sans-serif">Hi daniel,</font>
<br><font size=2 face="sans-serif">It seems that only the parameter NAME
of the LAYER key is used by getFeatureInfo. the wms_name of the METADATA
is not used.</font>
<br><font size=2 face="sans-serif">I tried to set wms_layername in the
METADATA but I get an error and no response. I tried with wms_layer_name
and the query's result still returns LAYER NAME</font>
<br>
<br><font size=2 face="sans-serif">Steve</font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Daniel Morissette &lt;dmorissette@mapgears.com&gt;@lists.osgeo.org</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : mapserver-users-bounces@lists.osgeo.org</font>
<p><font size=1 face="sans-serif">2010-12-15 12:16</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">mapserver-users@lists.osgeo.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: [mapserver-users] GetFeatureInfo
- get wms_title</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><tt><font size=2>Steve.Toutant@inspq.qc.ca wrote:<br>
&gt; <br>
&gt; Hi,<br>
&gt; I use INFO_FORMAT=gml for a GetFeatureInfo request. It works, but
I<br>
&gt; would like to get the wms_title instead of the layers name.<br>
&gt; <br>
&gt; In the UI people are seeing the title not the name. Showing the name
of<br>
&gt; a layer is useless in our context.<br>
&gt; Is it possible to retreive the wms_title if it exists?<br>
<br>
<br>
It seems that there is a nice undocumented feature to do what you want<br>
(I found it in the code just now):<br>
<br>
Add a &quot;wms_layername&quot; metadata to your layer definition and this
value<br>
will be used as the layer name in the GetFeatureInfo GML output. (The<br>
default is to use the layer name + &quot;_layer&quot; (e.g. &quot;parks_layer&quot;
for a<br>
layer named &quot;parks&quot;)<br>
<br>
Daniel<br>
-- <br>
Daniel Morissette<br>
http://www.mapgears.com/<br>
_______________________________________________<br>
mapserver-users mailing list<br>
mapserver-users@lists.osgeo.org<br>
http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
</font></tt>
<br>
<br>
<br>