[mapserver-users] Class Expressions

woodbri at swoodbridge.com woodbri at swoodbridge.com
Fri Sep 6 15:32:36 EDT 2002


Hi all,

In an annotation layer I have a bunch of records the I want to 
ignore. So I'm wondering if simple class expressions have a NOT 
operator? I can't find it in the doc.

CLASS
  NAME "Label these"
  EXPRESSION ([TEXT] != /^UNK|^N.A/)
  LABEL
     ...
  END
END

The other alternative I thought of was to create a do nothing class 
like the following where the items to ignore are caught by the first 
class, but nothing is then done with the item, but if it fails the 
first CLASS the second is a default catch all for the rest.

CLASS
  NAME "Ignore These"
  EXPRESSION /^UNK|^N.A/
END
CLASS
  NAME "Label These"
  LABEL
    ...
  END
END

Does this work?

-Steve



More information about the mapserver-users mailing list