Calculate distance between points in the same feature layer

1807
2
03-07-2019 04:11 AM
Thomvan_Oijen
New Contributor II

Dear Community,

I have one layer with 8.5k points scattered throughout the netherlands. Of these points I need to find the ones that are within 4 meters of eachoter.

I tried doing this by using 'Near' and by generating a near table. However, the only result I get in the 'NEAR_DIST' column is 0. I am guessing the tool finds the closest match of the comparing layer but since the input layer and the near features layer are the same it finds the same point.

Is there another tool I am missing? Specificaly designed for comparing distance within the same layer?

Search radius = 10000000 meters, maximum of 5 closest matches.

Yet, only a NEAR_DIST of 0...

0 Kudos
2 Replies
PeteCrosier
Occasional Contributor III

Generate Near Table documentation says:

The same feature class or layer may be used as both input and near features. In this situation, the input feature being evaluated is excluded from the near features candidates to avoid all features being closest to themselves.

I have just verified this is what happens too, with some of my own data.

Thomvan_Oijen
New Contributor II

Thank you! I just found out that there are alot of duplicates in my data, so yea it is closest to itself.

0 Kudos