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?
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.
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?
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.