Skip to main content

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>

 

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.


Thank you dave!


Reply