update... It works if I only have one layer in wms_name getLegendGraphic works "wms_name" "nouveau"
getLegendGraphic works "wms_name" "sousobs" getLegendGraphic doesn't work. But GetMap and getFeatureInfo do "wms_name" "nouveau,sousobs" [email protected]@lists.osgeo.org Envoyé par : [email protected] 2012-06-20 10:36 A [email protected] cc Objet [mapserver-users] GetLegendGraphic problem Hi I have a layer with CONNECTIONTYPE WMS which GetMap and GetFeatureInfo work, but GetLegendGraphic doesn't. I think it is because I'm using layers defined using classgroup but I didn't find any bug or issue on the wiki Please do you see something wrong in my layers definition below? thanks steve In my mapfile I have NAME "layers" TYPE RASTER CONNECTION "http://XXXXX/mapserv?map=mapfile" CONNECTIONTYPE WMS METADATA "wms_name" "nouveau,sousobs" ....... END Here is my 2 WMS layers definition LAYER INCLUDE "layer.map" CLASSGROUP "nouveau" NAME "nouveau" METADATA "wms_title" "nouveau test" "wms_name" "nouveau" END END LAYER INCLUDE "layer.map" CLASSGROUP "sousobs" NAME "sousobs" METADATA "wms_title" "sousobs test" "wms_name" "sousobs" END END and a piece of layer.map ... CLASS NAME "Nouveau" EXPRESSION "1" GROUP "nouveau" LABEL TYPE TRUETYPE FONT "Arial" SIZE 8 POSITION AUTO COLOR 0 0 0 OUTLINECOLOR 255 216 20 BUFFER 50 FORCE TRUE END STYLE SYMBOL "triangle" SIZE 20 COLOR 255 215 0 OUTLINECOLOR 144 0 0 END STYLE SYMBOL 'ems.incident.fire.forestFire' SIZE 15 END END CLASS NAME "Sous observation" EXPRESSION "2" GROUP "sousobs" LABEL TYPE TRUETYPE FONT "Arial" SIZE 8 POSITION AUTO COLOR 0 0 0 OUTLINECOLOR 255 216 20 BUFFER 50 FORCE TRUE END STYLE SYMBOL "triangle" SIZE 20 COLOR 50 205 50 OUTLINECOLOR 144 0 0 END END _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
