Question

Merge or filter points that have a common attribute value and are spatially close

  • 11 September 2017
  • 2 replies
  • 0 views

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


2 replies

Userlevel 2
Badge +16

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

Userlevel 4

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