Skip to main content
Question

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

  • September 11, 2017
  • 2 replies
  • 12 views

pimververgmail

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

erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • September 11, 2017

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


david_r
Celebrity
  • September 11, 2017
erik_jan wrote:

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).

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