Finding the outlines of complex shapes
in
Programming Questions
•
2 years ago
I have a project where I am plotting points on a map, combining those points to form regions, and then tracing the outline of those regions to get polygons, something I can use to export out to a vector format.
My current method of doing this involves using the Geomerative library to create circles at the points and use unions to combine them into regions. This works quite well. It generates the outline of some very complex regions (long tendrils, holes in the middle, etc), but when the I start dealing with more than 500 points in a region, it starts getting very slow, and I have some regions with over 20K points.
My alternatives seem to involve using something like blob detection or generating a convex hull. I'm a little dubious that either could handle what I'm trying to do. I know from experience that convex hull routines have problems dealing with outlier data points, and things like internal holes.
So, any suggestions for doing this operation accurately and relatively quickly?
1