Skip to main content
Question

Automated method of grouping vectors by sum of weight?

  • June 8, 2020
  • 1 reply
  • 7 views

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

1 reply

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • June 8, 2020

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.

 


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