Question

Filter points based on centre of mass


Badge +1

Hi guys! 

I am facing what it seems an easy challenge.

I have a group of points and I want to filter them using as reference the center of mass of the cohort.

points_contourFor the center of mass Im using CenterpointReplacer (based on their hull) + coordinate extractor.

I dont find the way to transfer these X, Y coordinates to the sparce cloud. Tried the following path:

1_FeatureMerge, not working, parameters on the image. I guess it's related with the number/string format

2_Set variable - retrieve variable . When retrieving, I dont find the variable

:S

 paths 

Any idea?

Thank you!

J

*featuremerge parafeature mergemeters>

 


2 replies

Userlevel 2
Badge +17

Hi @jgarciafdez111​ ,

In this case, I think you may wish to do an unconditional merge of the center of mass onto the points. To do an unconditional merge, please set both the Requestor and Supplier values in the Join On section to 1, rather than choosing an attribute. This will force the merge in all cases.

 

I think using a StatisticsCalculator to get the mean of the X and Y values of the points may be a better method to determine the center of gravity of the points, since it weights the location by the number of points nearest to it.

Badge +1

Thank you dave!

Reply