Restricting label display

Stephen Woodbridge woodbri at SWOODBRIDGE.COM
Tue Nov 22 09:17:39 EST 2005


Luca,

Do your labeling for this layer in a separate annotation layer and 
create two classes like this:

LAYER
   TYPE ANNOTATION
   DATA ...
   CLASSITEM 'labelfield'
   LABELITEM 'labelfield'
   CLASS
     EXPRESSION "0.00"
     # DO NOTHING TO SKIP THESE
   END
   CLASS
     # NO EXPRESSION so all other items are drawn here
     COLOR ...
     LABEL
       ....
     END
   END
END

Hope this helps.

-Steve W.

Luca Manganelli wrote:
> Hi,
> 
> I would like to know how to:
> 
>   not display labels equals to "0.00" in the map
> 
> is it possible?
> 
> --
> "An algorithm must be seen to be believed."
>    -- Donald Knuth, in "Fundamental Algorithms"
>                                http://www.trapanator.com/blog
> 



More information about the mapserver-users mailing list