[mapserver-users] classgroup and group

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Fri Oct 3 10:37:08 EDT 2008


Hi,
I can't figure out how classgroup and group work. I have defined the 
following layer. Using it with this query
http://ipaddress/cgi-bin/mapserv.exe?map=\path\mapfile.map&mode=map
I get all the points on a map but the style is not applied. 
If I remove the 2 CLASSGROUP statements but keep the GROUP key and launch 
the same query the layer features show up with style applied.
why is that?

Also, Is it possible to define a query string and specify which classgroup 
to show on the map? What would be the parameter then? I tried &group= xxx 
and &classgroup=xxx and it didn't work
thanks
Steve



  LAYER
    NAME 'DesastresQc'
    TYPE POINT
    DATA '.....'
    METADATA
      'wms_title' 'DesastresQc'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=longlat'
    'ellps=WGS84'
    'datum=WGS84'
    'no_defs'
    ''
    END

    CLASSGROUP "bio"
    CLASSGROUP "meteo"

    CLASSITEM    "TYPE_F"
    CLASS
      NAME       "Épidémique"
        GROUP   "bio"
        EXPRESSION 'EP'
        STYLE
           SYMBOL ep 
         SIZE 8 
           OUTLINECOLOR 0 0 0
        COLOR      130 230 250
      END
    END #class
    CLASS
      NAME       "Infestation"
        GROUP   "meteo"
        EXPRESSION 'IN'
        STYLE
           SYMBOL in
         SIZE 8 
           OUTLINECOLOR 0 0 0
        COLOR      130 230 250
      END
    END #class
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081003/3a06dbda/attachment.html


More information about the mapserver-users mailing list