[mapserver-users] Class Expressions

woodbri@swoodbridge.com woodbri@swoodbridge.com
Fri, 6 Sep 2002 15:32:36 -0400


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