class expressions for everything else
Kralidis,Tom [Burlington]
Tom.Kralidis at EC.GC.CA
Fri Oct 26 08:33:11 PDT 2007
This works.
Thanks a lot to David and Gregor for their bang on and quick responses.
..Tom
> -----Original Message-----
> From: Fawcett, David [mailto:David.Fawcett at state.mn.us]
> Sent: 26 October, 2007 11:22 AM
> To: Kralidis,Tom [Burlington]; MAPSERVER-USERS at lists.umn.edu
> Subject: RE: [UMN_MAPSERVER-USERS] class expressions for
> everything else
>
> 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