[mapserver-users] expressions and threshold color (solution found)

Chad Clabaugh cclabaugh at centwire.com
Thu May 28 09:55:05 EDT 2009


I checked the threshold values contained within my dataset and found that
the ranges were not what I expected and I was outside of that range.
Everything works properly after tweaking the threshold values.  Thanks!

 

From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chad Clabaugh
Sent: Thursday, May 28, 2009 9:45 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] expressions and threshold color

 

 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/1ea5ec18/attachment.html


More information about the mapserver-users mailing list