I think adding multiple classes to the clustered layer (with multiple expressions regarding to the intervals) should do the job.<div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div><br></div><div><br>
<br><div class="gmail_quote">2013/3/22 Mark Davidson <span dir="ltr"><<a href="mailto:mark@4each.co.uk" target="_blank">mark@4each.co.uk</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
That works great thanks Tamas. I'm now trying to use that expression as a condition on a class. <br><br>I'm trying to style the clusters a different colour depending on the calculation of that expression. Can multiple styles be applied to a single cluster point?<br>

<br>CLASS<br>      NAME "Clustered Point"<br>      EXPRESSION ("[Cluster:FeatureCount]" != "1")<br>      STYLE<br>        SIZE 22<br>        SYMBOL "circle"<br>        COLOR 255 0 0<br>

      END<br>      LABEL<br>      TEXT ([Sum:lowesttemperature]/[Count:lowesttemperature])<br>      FONT "arial"<br>  TYPE truetype<br>        SIZE 8<br>        COLOR 255 255 255<br>      END<br>    END<br><br>
  CLASS<br>
      EXPRESSION (([Sum:lowesttemperature]/[Count:lowesttemperature]) > 1)<br>      STYLE<br>        SYMBOL "circle"<br>        COLOR 0 255 0<br>      END<br>  END<div class="HOEnZb"><div class="h5"><br><br>
<br><div class="gmail_quote">On 22 March 2013 13:15, Tamas Szekeres <span dir="ltr"><<a href="mailto:szekerest@gmail.com" target="_blank">szekerest@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Mark,<div><br></div><div>I think LABEL level expressions would work in this case. Something like:</div><div><br></div>
<div>
<div>     LABEL</div><div>        TEXT ([Sum:itemname]/[Count:itemname])</div><div>        TYPE TRUETYPE</div>
<div>        ...</div><div>      END</div></div><div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div><br></div><div><br><br><div class="gmail_quote">2013/3/22 Mark Davidson <span dir="ltr"><<a href="mailto:mark@4each.co.uk" target="_blank">mark@4each.co.uk</a>></span><br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Hi All,<br><br>I'm new to using mapserver and have been implementing a WMS overlay using the CLUSTER funcionality got pretty much everything I need working, but I can't seem to get an average value of a cluster to use as part of the styling and labelling. <br>



I've tried everything I can think of to try and get it working but am having no luck. I thought that since you can do [Max:itemname] and [Count:itemname] I would be able to do an equation to work out the average, but I just get syntax errors with everything I try and haven't been able to find any examples of doing this.<br>



<br>Could anyone tell me if its possible to do this? And if so provide an example? <br><br>Any input would be very much appreciated,<br><br>Thanks,<br><br>Mark Davidson<br>
<br></div></div>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br>
</div></div></blockquote></div><br></div>