Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Separate GIS points into groups of points that are close to each other

Have set of coordinates that need to be separated into groups that are close to each other.

Working with Python against a PostgreSQL database. I figured out a solution that would work, but then I realized that I'm probably re-inventing the wheel. Are there libraries that I can use to accomplish this without having roll my own solution?

Example:

enter image description here

like image 244
Chris Dutrow Avatar asked Oct 26 '12 12:10

Chris Dutrow


1 Answers

There are two good solutions implemented directly in PostGIS in the answers to this GIS SE question:

Spatial clustering with PostGIS

You can also find some useful pointers in the answers to:

How to identify clusters in vector point data?

like image 79
radek Avatar answered Sep 20 '22 22:09

radek