操作方法

操作方法:在 ArcGIS Pro 中计算面内的点要素数量

Last Published: July 27, 2023

摘要

Counting the number of point features within a polygon is a basic and useful statistic in performing spatial analysis. The image below shows a polygon layer of some hypothetical regions in Washington State, and a point layer of cities within them.

A map displaying the cities in the Washington state regions.

This article provides the instructions to determine the number of cities in each of these regions. The following steps describe two methods: using the Summarize Within, and Spatial Join tools.

过程

Using the Summarize Within tool

  1. Navigate to the Geoprocessing pane. Click Toolboxes > Analysis Tools > Statistics > Summarize Within.
  2. In the Summarize Within window, for Input Polygons, select the desired polygon layer. In this example, the input is Washington State Regions.
  3. For Input Summary Features, select the desired point layer. In this example, the input is Cities in WA.
  4. For Output Feature Class, specify an output name in the desired geodatabase location. In this example, the output name in the default geodatabase is WashingtonStateRegions_SummarizeWithin.
  5. Leave other parameters at default.
  6. Click Run.
The Summarize Within tool window displaying the Input Polygons, Input Summary Features, and Output Feature Class parameters. Click Run.

The image below shows the attribute table of the output with the Count of Points field indicating the number of points in each polygon.

The WashingtonStateRegions_SummarizeWithin attribute table displaying the Count of Points field.
 

Using the Spatial Join tool

  1. Navigate to the Geoprocessing pane. Click Toolboxes > Analysis Tools > Overlay > Spatial Join.
  2. In the Spatial Join window, for Target Features, select the desired polygon layer. In this example, the polygon layer is Washington State Regions.
  3. For Join Features, select the desired point layer. In this example, the point layer is Cities in WA.
  4. For Output Feature Class, specify an output name in the desired geodatabase location. In this example, the output name in the default geodatabase is WashingtonStateRegions_Spati.
  5. For Join Operation, select Join one to one. Ensure the Keep All Target Features check box is checked.
  6. For Match Option, select Completely contains.
  7. Leave other parameters at default.
  8. Click Run.
The Spatial Join tool window displaying the Target Features, Join Features, Output Feature Class and Join Operation parameters. Click Run.

The image below shows the attribute table of the output with the Join_Count field indicating the number of points in each polygon.

The WashingtonStateRegions_Spati attribute table displaying the Join_Count field.

文章 ID: 000023531

接收通知并查找新问题或常见问题的解决方案

从我们全新的 AI 聊天机器人中获得简明答案和视频解决方案。

下载 Esri 支持应用程序

相关信息

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项