[mapserver-users] How to color a polygon depending on one of its DBF attribute ?

Speh Sylvain sylvain.speh at cemagref.fr
Mon Aug 6 23:16:28 PDT 2001


Hi list,

Whichever is the map I'm looking at, they are all made on the same pattern :
one class --> one color.
I wonder how to get a layer whose polygons are filled with the color of an
attribute or from a computed expression.
Imagine there is a population layer ( 100 citizens for the less populous
polygon , 10,000 for the more ).

How can I color them like
COLOR 43 196 x
with x = 0 for 100 and x = 255 for 10,000, or else ( like/dark polygon ) ?


Thanks for your advices.



More information about the MapServer-users mailing list