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

Answer by BERA for postgis: cluster/group points based on distance

$
0
0

You now can use ST_ClusterDBSCAN:

SELECT *, ST_ClusterDBSCAN(geom, eps := 100, minpoints := 2) over () AS cidFROM yourschema.yourtable

This finishes in 7 s for 200 000 rows.


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>