[mapserver-users] Using 2 attributes in 1 class

Stephen Woodbridge woodbri at swoodbridge.com
Wed Apr 4 16:38:26 EDT 2012


On 4/4/2012 4:23 PM, Özgür Arslan wrote:
> Hi All,
>
> I am working on a project and I want to demonstrate a gold mine which is
> producing mine by using 2 expressions like below. I just want to use 2
> attribute from same layer.I don't know if I am in right way. How can I
> make it? Is it possible? Can someone share his/her ideas about the problem?
>
> Thanks
>
> Ozz
>
>
> CLASSITEM 'P_COMMOD'
> CLASSITEM 'STATUS'
>
> HEADER "MDI_2011_GOLD_header.html"
> FOOTER "MDI_2011_GOLD_footer.html"
>
> TOLERANCE 5
> TOLERANCEUNITS PIXELS
>
>
> CLASS
> NAME "GOLD"
> EXPRESSION ("GOLD"="PRODUCING MINE")

EXPRESSION ('[P_COMMOD]' = 'GOLD' && '[STATUS]' = 'PRODUCING MINE')

and you do not need any CLASSITEM in this case.

-Steve W


More information about the mapserver-users mailing list