mapbox/concaveman

FeatureRequest: Segments as input

Opened this issue · 0 comments

Would it be possible to extend concaveman to support segments as input in addition to points?

The use case would be to fix slightly broken complex vector data, where say the boundary lines of a lake don't quite make up a closed polygon.

I was initially thinking converting the lines to points, but I realized that this will cause artifacts in cases where the original segments made a nice crisp edge (say at a jetty), the inner corners will end up mitered by the tolerance amount, which would in my case be significant.