0

I have all these line segments travelling between points:

enter image description here

I want all the one close to each other to be merged into a single feature. So I dissolved them like so:

enter image description here

Now I just want one line travelling through the centre of each of these line-like polygons. Any functions that do this?

7
  • possible duplicate of gis.stackexchange.com/questions/171145/…
    – Ian Turton
    Commented Apr 22, 2021 at 10:59
  • Thanks, but I would say not. Skeletization kind of follows the contours of the dissolved polygons. I'm looking for something that cuts right through it y = mx +b style.
    – hmnoidk
    Commented Apr 22, 2021 at 11:06
  • And gis.stackexchange.com/questions/33887/…
    – Bera
    Commented Apr 22, 2021 at 11:07
  • 1
    Some of these polygons look like very thin X or Y forms, so I guess your line will run down the middle of the arms of the X or Y, and not be inside the polygon at that point? Hence skeletonization is not the answer.
    – Spacedman
    Commented Apr 22, 2021 at 11:14
  • 1
    to get rid of the "arms", create a convex hull polygon over each of your polygon (or group of original lines), then you you can apply skeletization
    – JGH
    Commented Apr 22, 2021 at 13:08

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.