[Mapserver-users] CLASS Expressions

John McCue jmccue at geovue.com
Fri Jan 24 12:12:00 PST 2003


I would like to use an expression something like:

  CLASS
    NAME "0 - 5%"
    EXPRESSION (([RACCYBLACK] + [RACCYASIAN] + [RACCYOTH])/[POPCY]*100 >= 0
AND 							([RACCYBLACK] + [RACCYASIAN] + [RACCYOTH])/[POPCY]*100 <= 5)
    COLOR 120 120 255
  END

Is this valid in MapServer (v.3.6.3, Windows)?
[RACCYBLACK], [RACCYASIAN], [RACCYOTH] and [POPCY] are all fields in the dbf
of my shape file.

	- Do I need to delimit the expression with /  /?

	- What field should appear in the CLASSITEM?

Thanks,
John




More information about the MapServer-users mailing list