<div dir="ltr"><div><div>Hi all<br><br></div>Since PostGIS 2.2, you can now do the clustering server-side. See [1]<br></div>It is not as simple as using a QGIS code feature, and it is only available for PostGIS layers, but it could do the job. You will probably need to play with other methods such as ST_Centroid for getting a point and other aggregates function to count the features involved.<br><div><br>[1] <a href="http://postgis.net/docs/manual-2.2/ST_ClusterWithin.html">http://postgis.net/docs/manual-2.2/ST_ClusterWithin.html</a><br><br></div><div>Cheers,<br></div><div>Michaël<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-11-12 10:30 GMT+01:00 Neumann, Andreas <span dir="ltr"><<a href="mailto:a.neumann@carto.net" target="_blank">a.neumann@carto.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>Hi,</p><span class="">
<p>On 2015-11-12 10:22, Anita Graser wrote:</p>
<blockquote type="cite" style="padding:0 0.4em;border-left:#1010ff 2px solid;margin:0">
<p dir="ltr"><br> On Nov 12, 2015 9:11 AM, "Neumann, Andreas" <<a href="mailto:a.neumann@carto.net" target="_blank">a.neumann@carto.net</a>> wrote:<br> ><br> > I also think that - what Anita wants - is a special case of a cluster renderer (one that actually does not cluster, but only count how many features are at the same geometry). To have this as a special option of the displacement renderer would be a quite misleading ...<br> ><br> > But the cluster renderer also allows for a search radius (similar to the heatmap) - while the displacement renderer only looks at features at the exact same location (I know there is now a tolerance, but this was only added later).</p>
<p dir="ltr">Exactly this tolerance makes the renderer much more interesting to me. Never had a use case for the original displacement renderer.</p>
</blockquote>
</span><p dir="ltr">but still we shouldn't misuse terms. Displacement is the opposite of clustering. What you want is clustering, not displacement.</p><span class="HOEnZb"><font color="#888888">
<p dir="ltr">Andreas</p>
<p dir="ltr"> </p>
<div> </div>
</font></span></div>
<br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div><br></div>