Select to view content in your preferred language

ArcGIS Pro 3.0.2: The “generate near table” tool fails to calculate the distance between a point and itself?

604
3
10-25-2023 11:06 PM
JamalNUMAN
Legendary Contributor

 

ArcGIS Pro 3.0.2: The “generate near table” tool fails to calculate the distance between a point and itself?

 

In the screenshot below, I wanted to calculated the distance between all points including the distance between a point and itself. I was expecting to end up with 10, 000 records but not 9,900 records

 

What could be the issue here?

 

Clip_86.jpg

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos
3 Replies
Luke_Pinner
MVP Regular Contributor

That's intentional.  From the documentation:

  • The same feature class or layer can be used as both input features and near features. In this situation, the input feature being evaluated will be excluded from the near features candidates to avoid all features being closest to themselves.
JamalNUMAN
Legendary Contributor

In the Geographically Weighted Regression (GWR) analysis, I wanted to create W matrix that requires calculating the distance between all points including the point with itself.

 

Is there any other tool that can do this?

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos
Luke_Pinner
MVP Regular Contributor

I don't know about the GWR analysis, but you could just append the original point OBJECTIDs to the near table IN_FID and NEAR_FID fields and set NEAR_DIST to 0.