0

My main goal is to combine linestrings into a polygon. Is there a way to accomplish this using a library like Turf.js, or are there any geometrical rules to follow ?

I Tried building the concave hull of all points but this couldnt produce a valid polygon.

Backgroud:

I had to split polygons into linestrings of two kinds: line intersections and outerlines of the polygon, so that i can simplify each individual line, and then concatenate the lines to form a simplified polygon. The individual linestrings are almost the same as the initial polygons, but concatenating them again to a valid polygon seems to be the harder part.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.