Reputation: 459
I have a spatial software, In a database I have for each street in several cities, the lat/long of each street. And every street belongs to a zone. I'm trying to get polygons for each zone, and to do this, I need an algorithm that give me as result the smallest polygon that covers a number of points. Very similar to convex hull. convex hull is useless because it resolved it like this:
And, what I need is this:
Upvotes: 0
Views: 361
Reputation: 123
There is a working npm module for calculating concave hull here: https://www.npmjs.com/package/hull.js
I use it. It's written in javascript and you can use it on server with Node.js.
Upvotes: 0