What in essence I would like to be able to do is set one CLASS with a style to make the clusters circles with labels. Then have additional classes that have expressions to set the colouring of the circles dependant on the average value. Does that make it clearer? <br>
<br><div class="gmail_quote">On 22 March 2013 15:21, 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">
<div>May be I misunderstood something, but the requirement of "style the clusters a different colour depending on the calculation of that expression" requires only one class per expression condition.</div><span class="HOEnZb"><font color="#888888"><div>
 </div>
<div>Tamas</div></font></span><div class="HOEnZb"><div class="h5"><div><br><br> </div><div class="gmail_quote">2013/3/22 thomas bonfort <span dir="ltr"><<a href="mailto:thomas.bonfort@gmail.com" target="_blank">thomas.bonfort@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
Unless the cluster introduced some new codepaths in the rendering<br>
chain, I do not think this is the case. Only a *single* class gets<br>
used per rendered feature (the first one matching all expression and<br>
min/maxscale constraints)<br>
<br>
--<br>
thomas<br>
<div><div><br>
On 22 March 2013 14:59, Tamas Szekeres <<a href="mailto:szekerest@gmail.com" target="_blank">szekerest@gmail.com</a>> wrote:<br>
> I think adding multiple classes to the clustered layer (with multiple<br>
> expressions regarding to the intervals) should do the job.<br>
><br>
> Best regards,<br>
><br>
> Tamas<br>
><br>
><br>
><br>
> 2013/3/22 Mark Davidson <<a href="mailto:mark@4each.co.uk" target="_blank">mark@4each.co.uk</a>><br>
>><br>
>> That works great thanks Tamas. I'm now trying to use that expression as a<br>
>> condition on a class.<br>
>><br>
>> I'm trying to style the clusters a different colour depending on the<br>
>> calculation of that expression. Can multiple styles be applied to a single<br>
>> 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<br>
>><br>
>><br>
>><br>
>> On 22 March 2013 13:15, Tamas Szekeres <<a href="mailto:szekerest@gmail.com" target="_blank">szekerest@gmail.com</a>> wrote:<br>
>>><br>
>>> Mark,<br>
>>><br>
>>> I think LABEL level expressions would work in this case. Something like:<br>
>>><br>
>>>      LABEL<br>
>>>         TEXT ([Sum:itemname]/[Count:itemname])<br>
>>>         TYPE TRUETYPE<br>
>>>         ...<br>
>>>       END<br>
>>><br>
>>> Best regards,<br>
>>><br>
>>> Tamas<br>
>>><br>
>>><br>
>>><br>
>>> 2013/3/22 Mark Davidson <<a href="mailto:mark@4each.co.uk" target="_blank">mark@4each.co.uk</a>><br>
>>>><br>
>>>> Hi All,<br>
>>>><br>
>>>> I'm new to using mapserver and have been implementing a WMS overlay<br>
>>>> using the CLUSTER funcionality got pretty much everything I need working,<br>
>>>> but I can't seem to get an average value of a cluster to use as part of the<br>
>>>> styling and labelling.<br>
>>>> I've tried everything I can think of to try and get it working but am<br>
>>>> having no luck. I thought that since you can do [Max:itemname] and<br>
>>>> [Count:itemname] I would be able to do an equation to work out the average,<br>
>>>> but I just get syntax errors with everything I try and haven't been able to<br>
>>>> find any examples of doing this.<br>
>>>><br>
>>>> Could anyone tell me if its possible to do this? And if so provide an<br>
>>>> example?<br>
>>>><br>
>>>> Any input would be very much appreciated,<br>
>>>><br>
>>>> Thanks,<br>
>>>><br>
>>>> Mark Davidson<br>
>>>><br>
>>>> _______________________________________________<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>
>>><br>
>><br>
><br>
><br>
> _______________________________________________<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>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>