[mapserver-users] RE GetLegendGraphic problem UPDATE
Steve.Toutant at inspq.qc.ca
Steve.Toutant at inspq.qc.ca
Thu Jun 21 11:39:45 PDT 2012
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"
Steve.Toutant at inspq.qc.ca@lists.osgeo.org
Envoyé par : mapserver-users-bounces at lists.osgeo.org
2012-06-20 10:36
A
mapserver-users at lists.osgeo.org
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
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/20120621/b2bcdfbb/attachment.htm>
More information about the MapServer-users
mailing list