class expressions for everything else

Fawcett, David David.Fawcett at STATE.MN.US
Fri Oct 26 08:21:43 PDT 2007


Tom, 

I am pretty sure that you can just put a class with no expression as the
last class in your layer.  

Have you tried:  

CLASS
 NAME "catchall"
 COLOR 255  255 255 
 OUTLINECOLOR 0 0 0
END

David.
-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Kralidis,Tom [Burlington]
Sent: Friday, October 26, 2007 10:15 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] class expressions for everything else


Hi,

We have a LAYER with a number of CLASS definitions, each with a
EXPRESSION directive defined like:

CLASS
 NAME "foo"
 EXPRESSION ([Band] = 1)
 COLOR 0 255 0
 OUTLINECOLOR 0 0 0
END

...so that the data is displayed as per the CLASS definitions.  The
problem is that any data which does _not_ satisfy any of the CLASS
definitions is _not_ displayed.

Is there / how do we define a CLASS as the "catch all" definition (i.e.
colour everything else, similar to an OGC SLD "ElseFilter").

Any advice and / or suggestions are valued.

..Tom



More information about the MapServer-users mailing list