Quantcast
Channel: postgis: cluster/group points based on distance - Geographic Information Systems Stack Exchange
Browsing all 3 articles
Browse latest View live

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 Article


Answer 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 Article

Image may be NSFW.
Clik here to view.

postgis: 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
Browsing all 3 articles
Browse latest View live