[mapserver-users] Symbol sizes

Peter Rose peter_rose at hotmail.com
Mon Apr 27 02:37:43 PDT 2009


Hi G,

Classitem and expressions are fine when you are using a shapefile but as I
said my data is stored in a MySQL database where these don't seem to work. 

Here is a copy of the mapfile I tried to use but it still doesn't work!
 
#####################################
# POI layer - points of interest
#
LAYER
     NAME "poi"
     STATUS default
     TYPE point
     LABELCACHE on
 
     CLASS
          NAME "Large fiscal"
          EXPRESSION ([fiscal] < 1)
          STYLE
               SYMBOL "Circle"
               SIZE 8
               COLOR 255 0 0
               BACKGROUNDCOLOR 255 0 0
          END
    END # class
 
     CLASS
          NAME "Small fiscal"
          EXPRESSION ([fiscal] > 1)
          STYLE
               SYMBOL "Circle"
               SIZE 8
               COLOR 0 255 0
               BACKGROUNDCOLOR 0 255 0
          END
    END # class
END # layer poi
#####################################

No classitem need be specified if you use expressions and in fact they will
be ignored if present but as I said this only works with shapefiles not with
MySQL. 

Thanks for your suggestion.

Peter 
-- 
View this message in context: http://n2.nabble.com/Symbol-sizes-tp2717421p2724379.html
Sent from the Mapserver - User mailing list archive at Nabble.com.




More information about the MapServer-users mailing list