Skip to main content
Solved

Merging points based on distance

  • January 15, 2020
  • 2 replies
  • 259 views

Forum|alt.badge.img

Hello, everyone. I have points (attributes: X, Y, ID) and I want to merge points that are under 50 m distance and new point should have attributes ( new_ID, X, Y, all id of the points from which the new point was created) and if there is a duplicate point, also making one with attributes ( new_ID, X, Y, all id of the points from which the new point was created)

 

Thanks a lot.

Best answer by ebygomm

One option is to buffer all your points by the required distance, then dissolve the buffered output together, making sure to generate a list when you do this, then a CentrePointReplacer to get back to a point again.

View original
Did this help you find an answer to your question?

2 replies

david_r
Celebrity
  • January 15, 2020

Have you considered the NeighborhoodAggregator? Make sure to activate "Generate list" to keep the attributes from the merged points.

You can then use e.g. use a CenterPointReplacer to generate a new point in the middle of the merged points.


ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • Best Answer
  • January 15, 2020

One option is to buffer all your points by the required distance, then dissolve the buffered output together, making sure to generate a list when you do this, then a CentrePointReplacer to get back to a point again.


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