Skip to main content
Question

Split up complex polygon in simpler shapes

  • August 12, 2019
  • 4 replies
  • 109 views

Forum|alt.badge.img

I have a complex polygon like the on in the image below (it depicts roads). I would like to split it up in simpler shapes, so that each road is a separate polygon. Then I could calculate the center line of each polygon in a meaningful way.

How could I split this up?

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

Forum|alt.badge.img
  • 104 replies
  • August 12, 2019

Just to poke the data a bit and see what happens, how about using a DonutBridgeBuilder as a start?


redgeographics
Celebrity
Forum|alt.badge.img+60
  • Celebrity
  • 3701 replies
  • August 12, 2019

DonutBridgeBuilder, as @danullen says, and maybe a Chopper or a Tiler as well. But that wouldn't necessarily get you individual roads.


erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • August 12, 2019

I would start by using the boundaries (GeometryCoercer).

Then try the Chopper (chop by 2 vertices to create line segments).

Not sure how to go from there, but it could be a start.

Hope this helps.


klaas
Contributor
Forum|alt.badge.img+11
  • Contributor
  • 10 replies
  • August 12, 2019

When it's about the geometric complexity you show in the image, the CenterLineReplacer (Medial Axis setting) might work, with some cleanup afterwards (LineCombiner, Tester).

I've have worked on similar polygons (Icelandic rivers with lots of islands), where finally I had to use a Triangulator and NeighborFinder. If other efforts don't work, please upload the polygon as vector data.