[mapserver-users] attributes from *.dbf file
Alexander Shostko
shostko at ureach.com
Tue Apr 2 21:16:35 PST 2002
Dear mapserver users!
Thanks in advance for the help!
If there are a attributes defined for each shape in *.dbf file,
let's say STATE and LEVEL. State is a string and level is an
integer. I need to use it from the map file to set the color.
Is it sufficient to use the expression , for ezample:
CLASS
EXPRESSION ([STATE] = “Alaska” and [LEVEL] > 3 and [LEVEL] <
6 )
COLOR 255 0 0
END
CLASS
EXPRESSION ([STATE] = “Virginia” and [LEVEL] > 6 and [LEVEL]
< 9 )
COLOR 0 255 0
END
Well, I tried , it does not do anything. But even if it does,
does it set the color for each shape in the layer? (Not sure)
Thanks a lot
Alexander Shostko
shostko at ureach.com
More information about the MapServer-users
mailing list