Access Keys:
Skip to content (Access Key - 0)

Q: How do I calculate the distance between matched pairs of points in ArcGIS?

Answer

The XY to Line tool can solve this problem in ArcGIS 10.X:

  1. Create a table that contains these fields (at the very least):
    1. Unique ID: This might be a concatenated field based on the IDs of your two points. If your table contains the IDs of both points as well as a concatenated ID field, you can join the data together at the end.
    2. X coordinate of the first point
    3. Y coordinate of the first point
    4. X coordinate of the second point
    5. Y coordinate of the second point
    6. Note: X and Y coordinate fields can be created by calculating geometry in a point layer's attribute table.
  2. Open the XY to Line tool (Data Management Tools > Features > XY to Line).
    1. Make sure the ID field is specified.
    2. GEODESIC should be the line type so that a straight line is created.
  3. Open the attribute table of the resulting layer.
  4. Add a field (type: Double) named DISTANCE
  5. Right click on the heading of DISTANCE, click Calculate Geometry, and calculate the length in whatever units you wish.

Further Resources

See Also

Created by MIT GIS Services. Email gishelp(at)mit.edu for more assistance.

Community

Documentation and information provided by the MIT Community


Last Modified:

August 04, 2020

Get Help

Request help
from the Help Desk
Report a security incident
to the Security Team
Labels:
c-gis c-gis Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
Feedback
This product/service is:
Easy to use
Average
Difficult to use

This article is:
Helpful
Inaccurate
Obsolete
Adaptavist Theme Builder (4.2.3) Powered by Atlassian Confluence 3.5.13, the Enterprise Wiki