<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi,</div>

<div> </div>

<div>for a project (python standalone) I try to display points in "clusters" (like the Leaflet-marker-Cluster http://leaflet.github.io/Leaflet.markercluster/example/marker-clustering-realworld.388.html, or Openlayers, etc. just a simple distance based solution). <span style="font-family: Verdana; font-size: 12px; line-height: 19.200000762939453px;"> </span>As far as I understand the PointDisplacementRenderer <span style="font-family: Verdana; font-size: 12px; line-height: 19.200000762939453px;">more or less </span>it does the same: group all points in a radius into a cluster and show the center point. If the tolerance is set depending on the scale the center points are displayed properly.</div>

<div>I looked into the docs and the source code and didn't found a way to access the list of displacementGroups (to get the count and the center point) or just the count of points in each group. After that <span style="font-family: Verdana, sans-serif, Arial, 'Trebuchet MS'; font-size: 13px; line-height: 1.6em;">I tried to modify the source code of the renderer. I made the </span>mDisplacementGroups publicly accessable (or i tried to do so)<span style="font-family: Verdana, sans-serif, Arial, 'Trebuchet MS'; font-size: 13px; line-height: 1.6em;"> and moved the:</span></div>

<div>    typedef QMap<QgsFeatureId, QgsFeature> DisplacementGroup;<br/>
    /**Groups of features that have the same position*/<br/>
    QList<DisplacementGroup> mDisplacementGroups;<br/>
    /**Mapping from feature ID to its group index*/</div>

<div>above the private section but it didn't worked. Is this completly wrong or do I have to change something else to get access with the python bindings?</div>

<div>Is there any way to get the center point of each group and the count from the current implementation?</div>

<div>I didn't found something in the mailing list or somewhere else: is someone working on a "visual clustering" solution?</div>

<div> </div>

<div>Greetings</div></div></body></html>