[mapserver-users] expressions and threshold color

Chad Clabaugh cclabaugh at centwire.com
Thu May 28 09:44:41 EDT 2009


 Hello,

 

I'm attempting to color layers by their threshold values.  When I use the
following mapfile it is only coloring two layers instead of three.  Also the
layer its coloring changes based on the value in the expression but the
areas of each layer never change.  Am I going about this correctly?

 

  LAYER

    NAME Coverage

    TYPE POLYGON

    STATUS DEFAULT

    DATA ftwtest

 

    PROJECTION

      "init=epsg:4326"

    END

 

    CLASSGROUP "Coverage group"

      CLASS

        EXPRESSION ([THRESHOLD] >= -68)

        STYLE

COLOR 255 0 0

        END

      END

      CLASS

        EXPRESSION ([THRESHOLD] >= -73)

        STYLE

COLOR 0 255 0

        END

      END

      CLASS

        EXPRESSION ([THRESHOLD] >= -100)

        STYLE

COLOR 0 0 255

        END

      END

 

Thank you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090528/32053271/attachment.html


More information about the mapserver-users mailing list