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.

  • 24 August 2022
  • 1 reply
  • 9 views

Badge

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

Userlevel 6
Badge +32

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.

Reply