PROBLEM

Near returns different results than Measure Distance in ArcGIS Pro

Last Published: August 30, 2024

Description

In ArcGIS Pro, calculating the distance between two features from different feature layers yield different results depending on whether the Near tool or the Measure Distance tool is used. For example, when measuring the distance between feature A and feature B, the Near tool returns a value of 821,175.436331 meters, as shown in the map image below.

The distance between feature A and B returned using the Near tool.

Meanwhile, measuring the distance between feature A and feature B using the Measure Distance tool returns a value of 815,327.37 meters, as shown in the image below.

The distance between feature A and B returned using the Measure Distance tool.

Cause

The coordinate systems of the layers and the map do not match, causing discrepancies in the distance values. The Near tool calculates distances based on the coordinate system of the input layer, whereas the Measure Distance tool calculates distances based on the coordinate system of the map.

Solution or Workaround

To ensure consistent distance measurements when using either the Near or Measure Distance tool, match the coordinate systems of the layer and map accordingly.

Note:
•  To check the map coordinate system, right-click the map layer in the Contents pane, click Properties, and click the Coordinate System tab.
•  To check the layer coordinate system, right-click the layer in the Contents pane, click Properties, click the Source tab, and expand the Spatial Reference node.

Match the map coordinate system to the layer coordinate system

Change the map coordinate system to match the layer coordinate system. Refer to ArcGIS Pro: Set the coordinate system for instructions.

Match the layer coordinate system to the map coordinate system

    1. In the Geoprocessing pane, search for and click Project (Data Management Tools).
    2. For Input Dataset or Feature Class, select the layer with a coordinate system to be projected. In this example, the Point_B layer with the Indian 1954 UTM Zone 47N coordinate system is selected.
    3. For Output Dataset or Feature Class, rename the parameter is necessary.
    4. For Output Coordinate system, select Current Map [Map] from the drop-down list to copy the map coordinate system. This option automatically specifies the map coordinate system. In this example, the map coordinate system is WGS 1984 Web Mercator Auxiliary Sphere.
    5. Click Run.
    The configured Project pane.

    Use the tool's output layer as the input for the Near tool to measure distance. The map image below shows the distance measured using the Near tool when the map and the layer share the same coordinate system. The value is consistent with the distance measured using the Measure Distance tool.

    The consistent distance measurement between feature A and B using the Near tool

    Article ID: 000033399

    Software:
    • ArcGIS Pro 3 1
    • ArcGIS Pro 3 3
    • ArcGIS Pro 3 2

    Receive notifications and find solutions for new or common issues

    Get summarized answers and video solutions from our new AI chatbot.

    Download the Esri Support App

    Get help from ArcGIS experts

    Contact technical support

    Download the Esri Support App

    Go to download options