Filter help, string expression

Scott Schulthess scott at TOPOZONE.COM
Tue Feb 20 11:14:16 PST 2007


I'm trying to use the filter command in my mapfile make mapserver not
draw a street if one of it's attributes (the street name) is null.

 

I have tried using this

 

FILTER ("[FENAME]" != "(NULL)")

 

That's what it looks like in the dbf file - (NULL) when there is no
name. However it just doesn't draw anything for that layer.  

 

Here's the layer definition and one class

 

  LAYER

    METADATA

                        "wms_srs"       wmsEPSGNAD83

            END     

    NAME "US Streets"

            GROUP US_POINTLINE

    STATUS OFF

    DATA "str"

            PROJECTION

      "init=epsg:4326"

    END

    TILEINDEX "us_streets/county_index"

    TILEITEM "location"

    TYPE LINE

    SIZEUNITS PIXELS    

            TRANSPARENCY ALPHA //test

            FILTER ("[FENAME]" != "(NULL)")

            CLASS

      NAME "US Streets"

      MINSCALE  99001

      MAXSCALE 190000

      STYLE

        SYMBOL "circle"

        COLOR 183 176 169

                        SIZE 4

                        ANTIALIAS TRUE

      END

      STYLE

        SYMBOL "circle"

        COLOR 254 254 254

                        SIZE 2

                        ANTIALIAS TRUE 

      END

    END

 

Tips?

 

-Scott

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070220/476c7c02/attachment.htm>


More information about the MapServer-users mailing list