[mapserver-users] Symbol sizes
Fawcett, David
David.Fawcett at state.mn.us
Mon Apr 27 06:34:16 PDT 2009
Expressions should work for any type of data source.
When you say that it isn't working, what do you mean. Are you getting
an error? Are you getting any symbols drawn with a size of 8? Are you
only getting red dots or blue dots?
David.
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Peter Rose
Sent: Monday, April 27, 2009 4:38 AM
To: mapserver-users at lists.osgeo.org
Subject: RE: [mapserver-users] Symbol sizes
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