Skip to main content

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?

 

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.

 

 


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.


You could also try the AreaGapAndOverlapCleaner.


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

  • 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