Skip to main content

I have vector polygon files with LOTS of individual cells. Each cell has an allotted weight value, but I would like to group contiguous polygons so that the sum of their combined weights is as close to a target value as possible (simplified example below).

 

 

I feel that this likely exists and I just haven't found the correct keyword to find it. TIA

The keyword you are looking for is clustering.

 

 

Similar questions have been asked before:

https://knowledge.safe.com/questions/82371/group-tiles-adjacent-to-each-other-up-to-a-certain.html

https://knowledge.safe.com/questions/36955/cluster-or-group-n-points-based-on-location-1.html

https://knowledge.safe.com/questions/76961/conditional-aggregating.html

 

But there isn't an easy FME answer. I would look to see if there is an R package that does what you want and use the RCaller to process your data.

 


Reply