操作方法

操作方法:在 ArcGIS Pro 中符号化数据的特定要素

Last Published: August 8, 2023

摘要

In ArcGIS Pro, data in a feature layer can be represented by symbology. However, the symbology cannot be changed directly by selecting the features. The map below shows the same symbology applied to all the Asian countries included in the data.

Map showing Asian countries symbolized by a blue star symbol. Countries symbolized in the map are China, India, Bangladesh, Sri Lanka, Malaysia, Singapore, Indonesia, Philippines, Brunei, Thailand, Cambodia, Vietnam, Laos, and Myanmar.

This article provides the workflow to apply specific feature symbology to Southeast Asian countries by creating a new field in the data to assign attribute information to specific features and symbolizing the specific features by unique values.

过程

  1. Create a new attribute field.
    1. In ArcGIS Pro, in the Contents pane, right-click the dataset layer, and select Attribute Table.
Access the table view of the data by right-clicking the layer and selecting Attribute Table in the Contents pane.
  1. In the table view pane, click the Add Field button.
A new field added to the table by clicking Add on the upper left side of the table view.
  1. Create a new column with the Long data type. In this example, the new field name is SEACountries.
The new row automatically created after clicking Add in the table view.
  1. On the ArcGIS Pro ribbon, on the Fields tab, click Save.
The Fields tab on top of the window.
  1. Add attribute information to the specific features in the new field.
    1. On the Map tab, click Select.
    2. Press and hold the Shift key on the keyboard, and click to select more than one feature.
    3. In the Contents pane, right-click the dataset layer, and select Attribute Table.
    4. In the table view, right-click the new field header, and select Calculate Field.
The Calculate Field window.
  1. In the Calculate Field window, the Input Table section and the Field Name (Existing or New) section are automatically selected. Ensure Python 3 is selected in the Expression Type section.
  2. In the expression box, type the following code:
0 if !Field_Name! is None else !Field_Name!
Note:
0 can be replaced with any other value.
The null value of the selected features is replaced with a new value.
  1. Click Apply.
  2. Click OK to close the Calculate Field window.
Note:
For a larger dataset, select specific features using existing attributes or by location. Refer to ArcGIS Pro: Select features using attributes or ArcGIS Pro: Select features by location for more information.
  1. Symbolize the layer using the new column as unique values. Refer to ArcGIS Pro: Unique Values for information on how to apply and modify unique value symbology.

The map below shows the result of symbolizing the data with unique values. Southeast Asian countries are symbolized with the red triangle symbology.

Map showing the result of the workflow where the ten Southeast Asian countries, the specific features, are symbolized by a red triangle symbol. Other Asian countries are symbolized by a blue star symbol.

文章 ID: 000025115

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

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

下载 Esri 支持应用程序

相关信息

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项