Skip to main content
Question

I have a donut in between 2 polygons. Whats the best method to fill the polygon but splitting the fill evenly across the 2 polygons.

  • August 24, 2022
  • 1 reply
  • 54 views

Forum|alt.badge.img

imageThe above image should explain the issue.

 

I have tried AreaGapAndOverlapCleaner which fills the donut and dissolves with 1 of the polygons (I have chosen the polygon with the longest boundary at present), which results in below.

 

imageThis is ok but ideally I want the donut evenly split across both polygons. Is this possible?

 

Can anyone recommend a transformer or number of them to get my required output?

1 reply

nielsgerrits
VIP
Forum|alt.badge.img+54

Solution depends on the data. For simple shapes like your example, you can just use the line from the hole, associate it with the source features and close it. See the added sample workspace

 

If the shape of the hole is more complex, like a "C", this will cause self intersections.

If the hole has more then 2 features surrounding it, other issues arise.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings