[mapserver-dev] Dynamic Cluster Labels
conor.mccauley at mapflow.com
Wed Jan 25 07:47:50 EST 2012
I have a quick query regarding labels on cluster items and how these can be
customized based on the attributes returned.
Currently I have clustering functioning where the label of the cluster is
the feature count, that's fine. I now want to change that label to be a sum
of attributes for all each features in that cluster. I have a "total_si"
number value being selected from my datasource, I want the cluster label to
be the sum of total_si for all features in a cluster.
I have looked into the GROUP and FILTER options but they do not seem to fit
the bill for what I want to achieve. Can anybody point me in the right
Please see my mapfile snippit below. Much appreciated.
DATA "GEOM FROM (select geom,total_si from EXPOSURE_DEMO WHERE
CLIENT_ID = '%client%' and TYPE = 'QUOTE') USING SRID 4326"
LABELITEM "Cluster:FeatureCount" >> I want this to be sum of total_si
for each cluster
This email and its content/attachments are covered by Mapflow's email disclaimer, please see www.mapflow.com/disclaimer
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mapserver-dev