↧
Answer by BERA for postgis: cluster/group points based on distance
You now can use ST_ClusterDBSCAN:SELECT *, ST_ClusterDBSCAN(geom, eps := 100, minpoints := 2) over () AS cidFROM yourschema.yourtableThis finishes in 7 s for 200 000 rows.
View ArticleAnswer by dbaston for postgis: cluster/group points based on distance
You can group points using either the recursive query or PL/PLGSQL procedure described in the answers to this question. Just substitute ST_DWithin for ST_Intersects/ST_Touches, as appropriate.If you're...
View Articlepostgis: cluster/group points based on distance
We have a set of thousands of points and want to group all of those which are within 100m distance from each other (to get the centroid from each group). A first idea was to build 100m buffers around...
View Article
More Pages to Explore .....