Thanks Tamas.
Here is the layer snippet:
LAYER
NAME sites
STATUS default
DATA 'sites'
TYPE POINT
CLUSTER
MAXDISTANCE 50
REGION ellipse
END
LABELITEM Cluster:FeatureCount
CLASS
NAME small
EXPRESSION ([Cluster:FeatureCount] 11)
STYLE
COLOR 255 0 0
SYMBOL circle
SIZE 20
END
LABEL
FONT arial
TYPE TRUETYPE
SIZE 8
COLOR 255 255 255
END
END
CLASS
NAME medium
EXPRESSION ([Cluster:FeatureCount] 100)
STYLE
COLOR 255 0 0
SYMBOL circle
SIZE 35
END
LABEL
FONT arial
TYPE TRUETYPE
SIZE 8
COLOR 255 255 255
END
END
CLASS
NAME large
STYLE
COLOR 255 0 0
SYMBOL circle
SIZE 50
END
LABEL
FONT arial
TYPE TRUETYPE
SIZE 8
COLOR 255 255 255
END
END
END
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Tamas Szekeres
Sent: Wednesday, October 12, 2011 2:53 PM
To: Fawcett, David (MPCA)
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Expressions on Cluster Objects
David,
I think that option should indeed work in the class expressions. Do you have a
more complete example (map file)?
Best regards,
Tamas
2011/10/12 Fawcett, David (MPCA)
david.fawc...@state.mn.usmailto:david.fawc...@state.mn.us
I have been playing around with the new cluster functionality a little bit.
I am looking for way to classify the clusters based on their feature counts.
E.g. larger circles for clusters of 10 features and even larger circles for
clusters of 100 features.
Because Cluster:FeatureCount returns a string, the below expression can
evaluate to True for values like 109
([Cluster:FeatureCount] 11)
Does anyone have any suggestions?
Maybe I am just misusing Clusters...
Thanks,
David.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users