Skip to main content
Solved

Merge polygons with gaps

  • September 12, 2024
  • 5 replies
  • 104 views

repas4411
Contributor
Forum|alt.badge.img+2

I have several polygons. They follow a line pattern where tre long polygons should be one large, and by that i mean that there should be no space between them, and instead of three long polygons it should be one large. 

The following image shows three pairs, so these nine polygons should be three larger polygons. 

 

Any idea how to do this?

 

Best answer by joepk

redgeographics wrote:
  • Bufferer to add a buffer to the original polygons and then a Dissolver. Note that this will add coverage to the outside of the orignal polygon bundle as well

After the Dissolver you can add another Bufferer with a negative buffer distance, essentially removing the outermost buffer.

View original
Did this help you find an answer to your question?

5 replies

veschwab
Contributor
Forum|alt.badge.img+11
  • Contributor
  • September 12, 2024

Hi!

 

You could try using the NeighborhoodAggregator. You might have to play around a little bit with Neighborhood Width and Height.

But then you have the features aggregated and can use a HullAccumulator with a GroupBy on for example an ID attribute.

 

 


dustin
Influencer
Forum|alt.badge.img+30
  • Influencer
  • September 12, 2024

If there is any common attribution between the 3 polygons that need merging, you can look into the Snapper transformer using the group-by parameter on that common attribute. Follow that up with a Dissolver using the same group-by parameter.


DanAtSafe
Safer
Forum|alt.badge.img+18
  • Safer
  • September 12, 2024

You could also try the AreaGapAndOverlapCleaner.


redgeographics
Celebrity
Forum|alt.badge.img+48

2 more options that you can consider:

  • The AreaAmalgamator is specifically designed for these sort of cases
  • Bufferer to add a buffer to the original polygons and then a Dissolver. Note that this will add coverage to the outside of the orignal polygon bundle as well

joepk
Influencer
Forum|alt.badge.img+20
  • Influencer
  • Best Answer
  • September 13, 2024
redgeographics wrote:
  • Bufferer to add a buffer to the original polygons and then a Dissolver. Note that this will add coverage to the outside of the orignal polygon bundle as well

After the Dissolver you can add another Bufferer with a negative buffer distance, essentially removing the outermost buffer.


Reply


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