Skip to main content

I have a couple of thousand points that have a number as attribute.
Some of those points are

- close to each other
- also have the same number

Note: there are also points that have the same number but are far apart.

I want to merge all points that match both conditions into 1 point

So far I have set a neighbourfinder transformer, which groups the points by number and then finds the closest points (max 4).

But how do I merge the resulting related points into 1?Any suggestions are welcome. Kind regards,Pim Verver

Have a look at the NeighborhoodAggregator and the use the CenterpointReplacer to replace the aggregate by 1 point in the center.


Have a look at the NeighborhoodAggregator and the use the CenterpointReplacer to replace the aggregate by 1 point in the center.

Agree. Most importantly, use your common identifier as the Group By in the NeigborhoodAggreator (or NeighborFinder, if you prefer).

Reply