[mapserver-users] Symbol sizes

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Mon Apr 27 05:45:55 PDT 2009


Hi,

I can't see connectiontype, connection or data in the layer definitions.  Have you just removed them from your mail, or are they really missing from the mapfile?  Even if you wouldn't like to reveal the real parameters it would help to see the idea of how you read the database.

-Jukka Rahkonen- 


Peter Rose wrote:

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.

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list