<br><font size=2 face="sans-serif">update...</font>
<br>
<br><font size=2 face="sans-serif">It works if I only have one layer in
wms_name</font>
<br><font size=2 face="sans-serif">getLegendGraphic works</font>
<br><font size=2 face="sans-serif">"wms_name"
"nouveau"</font>
<br>
<br><font size=2 face="sans-serif">getLegendGraphic works</font>
<br><font size=2 face="sans-serif">"wms_name"
"sousobs"</font>
<br>
<br><font size=2 face="sans-serif">getLegendGraphic doesn't work.
But GetMap and getFeatureInfo do</font>
<br><font size=2 face="sans-serif">"wms_name"
"nouveau,sousobs"</font>
<br><font size=2 face="sans-serif"><br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Steve.Toutant@inspq.qc.ca@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">2012-06-20 10:36</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">[mapserver-users] GetLegendGraphic problem</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
Hi</font><font size=3> </font><font size=2 face="sans-serif"><br>
I have a layer with CONNECTIONTYPE WMS which GetMap and GetFeatureInfo
work, but GetLegendGraphic doesn't. <br>
I think it is because I'm using layers defined using classgroup but I didn't
find any bug or issue on the wiki</font><font size=3> </font><font size=2 face="sans-serif"><br>
Please do you see something wrong in my layers definition below?</font><font size=3>
</font><font size=2 face="sans-serif"><br>
thanks</font><font size=3> </font><font size=2 face="sans-serif"><br>
steve</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
In my mapfile I have</font><font size=3> </font><font size=2 face="sans-serif"><br>
NAME "layers"</font><font size=3> </font><font size=2 face="sans-serif"><br>
TYPE RASTER</font><font size=3> </font><font size=2 face="sans-serif"><br>
CONNECTION "http://XXXXX/mapserv?map=mapfile"</font><font size=3>
</font><font size=2 face="sans-serif"><br>
CONNECTIONTYPE WMS</font><font size=3> </font><font size=2 face="sans-serif"><br>
METADATA</font><font size=3> </font><font size=2 face="sans-serif"><br>
"wms_name"
"nouveau,sousobs"</font><font size=3>
</font><font size=2 face="sans-serif"><br>
.......</font><font size=3>
</font><font size=2 face="sans-serif"><br>
END</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Here is my 2 WMS layers definition</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
LAYER</font><font size=3> </font><font size=2 face="sans-serif"><br>
INCLUDE "layer.map"</font><font size=3>
</font><font size=2 face="sans-serif"><br>
CLASSGROUP "nouveau"</font><font size=3>
</font><font size=2 face="sans-serif"><br>
NAME "nouveau"</font><font size=3>
</font><font size=2 face="sans-serif"><br>
METADATA</font><font size=3> </font><font size=2 face="sans-serif"><br>
"wms_title"
"nouveau
test"</font><font size=3> </font><font size=2 face="sans-serif"><br>
"wms_name"
"nouveau"</font><font size=3> </font><font size=2 face="sans-serif"><br>
END</font><font size=3> </font><font size=2 face="sans-serif"><br>
END </font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
LAYER</font><font size=3> </font><font size=2 face="sans-serif"><br>
INCLUDE "layer.map"</font><font size=3>
</font><font size=2 face="sans-serif"><br>
CLASSGROUP "sousobs"</font><font size=3>
</font><font size=2 face="sans-serif"><br>
NAME "sousobs"</font><font size=3>
</font><font size=2 face="sans-serif"><br>
METADATA</font><font size=3> </font><font size=2 face="sans-serif"><br>
"wms_title"
"sousobs
test"</font><font size=3> </font><font size=2 face="sans-serif"><br>
"wms_name"
"sousobs"</font><font size=3> </font><font size=2 face="sans-serif"><br>
END</font><font size=3> </font><font size=2 face="sans-serif"><br>
END </font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
and a piece of layer.map</font><font size=3> </font><font size=2 face="sans-serif"><br>
...</font><font size=3> </font><font size=2 face="sans-serif"><br>
CLASS</font><font size=3> </font><font size=2 face="sans-serif"><br>
NAME "Nouveau"</font><font size=3> </font><font size=2 face="sans-serif"><br>
EXPRESSION "1"</font><font size=3> </font><font size=2 face="sans-serif"><br>
GROUP "nouveau"</font><font size=3>
</font><font size=2 face="sans-serif"><br>
LABEL</font><font size=3> </font><font size=2 face="sans-serif"><br>
TYPE TRUETYPE</font><font size=3>
</font><font size=2 face="sans-serif"><br>
FONT "Arial"</font><font size=3>
</font><font size=2 face="sans-serif"><br>
SIZE 8</font><font size=3> </font><font size=2 face="sans-serif"><br>
POSITION AUTO</font><font size=3>
</font><font size=2 face="sans-serif"><br>
COLOR 0 0 0</font><font size=3>
</font><font size=2 face="sans-serif"><br>
OUTLINECOLOR 255 216 20</font><font size=3>
</font><font size=2 face="sans-serif"><br>
BUFFER 50</font><font size=3>
</font><font size=2 face="sans-serif"><br>
FORCE TRUE</font><font size=3>
</font><font size=2 face="sans-serif"><br>
END <br>
STYLE</font><font size=3> </font><font size=2 face="sans-serif"><br>
SYMBOL "triangle"</font><font size=3>
</font><font size=2 face="sans-serif"><br>
SIZE 20</font><font size=3> </font><font size=2 face="sans-serif"><br>
COLOR 255 215 0</font><font size=3> </font><font size=2 face="sans-serif"><br>
OUTLINECOLOR 144 0 0
</font><font size=3> </font><font size=2 face="sans-serif"><br>
END</font><font size=3> </font><font size=2 face="sans-serif"><br>
STYLE </font><font size=3>
</font><font size=2 face="sans-serif"><br>
SYMBOL 'ems.incident.fire.forestFire'</font><font size=3>
</font><font size=2 face="sans-serif"><br>
SIZE 15</font><font size=3> </font><font size=2 face="sans-serif"><br>
END</font><font size=3>
</font><font size=2 face="sans-serif"><br>
END</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
CLASS</font><font size=3> </font><font size=2 face="sans-serif"><br>
NAME "Sous observation"</font><font size=3>
</font><font size=2 face="sans-serif"><br>
EXPRESSION "2"</font><font size=3> </font><font size=2 face="sans-serif"><br>
GROUP "sousobs"</font><font size=3>
</font><font size=2 face="sans-serif"><br>
LABEL</font><font size=3> </font><font size=2 face="sans-serif"><br>
TYPE TRUETYPE</font><font size=3>
</font><font size=2 face="sans-serif"><br>
FONT "Arial"</font><font size=3>
</font><font size=2 face="sans-serif"><br>
SIZE 8</font><font size=3> </font><font size=2 face="sans-serif"><br>
POSITION AUTO</font><font size=3>
</font><font size=2 face="sans-serif"><br>
COLOR 0 0 0</font><font size=3>
</font><font size=2 face="sans-serif"><br>
OUTLINECOLOR 255 216 20</font><font size=3>
</font><font size=2 face="sans-serif"><br>
BUFFER 50</font><font size=3>
</font><font size=2 face="sans-serif"><br>
FORCE TRUE</font><font size=3>
</font><font size=2 face="sans-serif"><br>
END <br>
STYLE</font><font size=3> </font><font size=2 face="sans-serif"><br>
SYMBOL "triangle"</font><font size=3>
</font><font size=2 face="sans-serif"><br>
SIZE 20</font><font size=3> </font><font size=2 face="sans-serif"><br>
COLOR 50 205 50</font><font size=3> </font><font size=2 face="sans-serif"><br>
OUTLINECOLOR 144 0 0
<br>
END</font><font size=3> </font><font size=2 face="sans-serif"><br>
END </font><tt><font size=2>_______________________________________________<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>