I have two point feature classes, each containing about fifty points. These 2 point feature classes should be merged, or the points of feature class 2 added to feature class 1, as feature class 2 does not contain any information, but only the points itself.
But if the distance between a point of feature class 1 and feature class 2 is smaller than 50 meters, they should be merged to one point.
The figure should illustrate the problem
How can I do this programmatically (with an ArcPy script)?
One way I could think of is:
- run buffer around feature class 1,
- delete points from feature class 2 that fall into the buffer,
- add remaining points of feature class 2 to feature class 1
How can I achieve this?