AW: [UMN_MAPSERVER-USERS] CLASSITEM and logical EXPRESSION based on more attributes?

Arnd Wippermann arndw at WTAL.DE
Wed Sep 13 17:47:07 PDT 2006


 Hello Carsten,

The classitem is a must be, but in the expression you could query on other
attributes

    CLASSITEM 'PRJNR'

    CLASS
      NAME 'EG GEP'
      EXPRESSION ('[TYP]' = '%GEP%')
      OUTLINECOLOR 0 0 0
      COLOR 255 127 0
    END

    CLASS
      NAME 'EG KNA'
      EXPRESSION ('[TYP]' = '%KNA%')
      OUTLINECOLOR 0 0 0
      COLOR 152 78 163
    END

...
 
This works for me.

Mit freundlichen Grüssen

Arnd Wippermann
http://gis.ibbeck.de/pinguinale/

-----Ursprüngliche Nachricht-----
Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im
Auftrag von Carsten Dewey
Gesendet: Mittwoch, 13. September 2006 09:03
An: MAPSERVER-USERS at LISTS.UMN.EDU
Betreff: [UMN_MAPSERVER-USERS] CLASSITEM and logical EXPRESSION based on
more attributes?

Dear list,

I would like to define a CLASS using a logical expression based on different
attributes inside EXPRESSION:

EXPRESSION ("[AR_Auto]"="N" and "[AR_Pedestrians]"="Y" and
"[AR_Trucks]"="N")

What about the CLASSITEM in this case? 
Define the LAYER just without?

Thank you & kind regards
carsten



More information about the MapServer-users mailing list