Apply domain values to a field using the Field Calculator

相关信息
Article ID: 46128
Software:
ArcGIS for Desktop Advanced 10.2, 10.1, 10.2.1, 10.3, 10.3.1, 10.4, 10.1 SP1, 10.2.2
ArcGIS for Desktop Basic 10.2, 10.2.1, 10.3, 10.4, 10.3.1, 10.2.2, 10.1, 10.1 SP1
ArcGIS for Desktop Standard 10.2.1, 10.4, 10.1, 10.2, 10.1 SP1, 10.3.1, 10.2.2, 10.3
Platforms: N/A

问题描述
This workflow describes the steps that can be used to apply a coded value domain to a field within a feature class using the Field Calculator.
已邀请:

EsriSupport

赞同来自:

解决方案
In some cases, it is desirable to apply the description (i.e., red) of a coded value domain to multiple records within a field at one time. Rather than taking the time to apply each domain value for each individual record, the Field Calculator can be used to save time.

In this scenario, it is assumed that a domain has already been applied to the field to which assign values to. The domain has the following attributes:

Domain Name: Color
Field Type: Long Integer
Domain Type: Coded Values

Domain Values
Code:0 Description: Blue
Code:1 Description: Red
Code:2 Description: Green


A quick tour of attribute domains
  1. Open attribute table of feature class.
  2. Highlight the records to apply coded value domain descriptions to.
  3. Right-click the field name that the domain (Color) is applied to, and click Field Calculator.
  4. Input the coded value that matches the desired description. For instance, if it is necessary for all values to be 'Red', input '1' and select OK. This is because the coded value assigned to 'Red' in the domain is '1'.


 
Keep in mind that the field type of the field must match the field type of the domain.

其它相关参考
  1. Creating a new coded value domain


创建及修改时间
Created: 1/4/2016 Last Modified: 1/12/2016
原文链接
http://support.esri.com/en/kno ... 46128

要回复问题请先登录注册