Skip to main content
Solved

Merging points based on distance

  • January 15, 2020
  • 2 replies
  • 292 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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

david_r
Celebrity
  • 8392 replies
  • 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+44
  • Influencer
  • 3427 replies
  • 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.