[mapserver-users] GetLegendGraphic problem

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Wed Jun 20 07:36:42 PDT 2012


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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120620/49a3ffaa/attachment-0001.html>


More information about the mapserver-users mailing list