Hi all,<br><br>I have a quick query regarding labels on cluster items and how these can be customized based on the attributes returned.<br><br>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.<br>
<br>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 direction?<br><br>Please see my mapfile snippit below. Much appreciated.<br>
<br>Regards,<br><br>Conor.<br><br> LAYER<br> NAME cluster_by_tsi<br> TYPE POINT<br> CLUSTER<br> BUFFER 30<br> MAXDISTANCE 60<br> REGION "ellipse"<br> END<br><br> DUMP true<br>
STATUS ON<br> CONNECTION 'XXXXXXXXXXXXXXXXX'<br> CONNECTIONTYPE oraclespatial<br> DATA "GEOM FROM (select geom,total_si from EXPOSURE_DEMO WHERE CLIENT_ID = '%client%' and TYPE = 'QUOTE') USING SRID 4326"<br>
PROCESSING "CLOSE_CONNECTION=DEFER"<br> PROJECTION<br> "init=epsg:4326"<br> END<br><br> METADATA<br> 'client_validation_pattern' '^[a-zA-Z0-9_]*$'<br> 'default_client' 'DEMO'<br>
END<br><br> LABELITEM "Cluster:FeatureCount" >> I want this to be sum of total_si for each cluster<br> CLASSITEM "Cluster:FeatureCount"<br> SIZEUNITS pixels<br>...<br>...<br>
<pre>-end-
This email and its content/attachments are covered by Mapflow's email disclaimer, please see www.mapflow.com/disclaimer