[mapserver-users] Color polygons contd

Grant Marblestone Grant Marblestone <grantm@ATSER.com>
Fri, 8 Feb 2002 13:53:39 -0600


SO i think the answer to this is to use class expression to get teh colors
you want.

However i wish to ask further......

For expression not random.. but lets say i have some data zip that is
basically
77777
77788
77478
88983

And i want them to be red if even and blue if odd....
QUESTION
how can i use mod in the expression

EXPRESSION [zip]%2==0 red
EXPRESSION [zip]%2==1 blue?

Thanks,
Grant
----- Original Message -----
From: "Doug Williams" <williams@wildweb.org>
To: <mapserver-users@lists.gis.umn.edu>
Sent: Friday, February 08, 2002 10:32 AM
Subject: [mapserver-users] color polygons?


> Hello,
>
> Is it possible to randomly (or otherwise) color polygons within a single
> shapefile according to the value of one of the shpefile attributes?
>
> Thanks,
> Doug Williams