操作方法
The distance between two features is calculated as the shortest straight line connecting the points. ArcGIS Pro provides a few tools to calculate distance, including the Near, Generate Near Table, and Spatial Join (with CLOSEST match option) tools. Refer to ArcGIS Pro: How proximity tools calculate distance for more information.
This article provides options to determine the distance between the nearest point features from two different layers. For instance, to find the nearest distance between point features from a Residential layer and a School layer.
Use the Proximity toolset
The Near and Generate Near Table tools from the Proximity toolset calculate distance and other proximity information between input features and the nearest features in another layer or feature class. While the Near tool modifies the input and writes results in the input layer's attribute table, the Generate Near Table tool writes results to a new stand-alone table. Refer to ArcGIS Pro: Near (Analysis) and ArcGIS Pro: Generate Near Table (Analysis) for more information on how to use these tools.
Note: The Near and Generate Near Table tools are only available with an ArcGIS Desktop Advanced license.
Use the Overlay toolset
This option uses the Spatial Join tool to join attributes from target features to the join features based on spatial relationship, and writes the results to the output feature class.
The image below shows the distance between a point feature and the nearest point feature in another layer, that is, 1,392.617 meters.
获取来自 ArcGIS 专家的帮助
下载 Esri 支持应用程序