ArcGIS Server Banner

An overview of attribute domains

An overview of attribute domains

Release 9.3 E-mail This TopicPrintable VersionGive Us feedback
Attribute domains are rules that describe the legal values of a field type, providing a method for enforcing data integrity. Attribute domains are used to constrain the values allowed in any particular attribute for a table or feature class. If the features in a feature class or nonspatial objects in a table have been grouped into subtypes, different attribute domains can be assigned to each of the subtypes. A domain is a declaration of acceptable attribute values. Whenever a domain is associated with an attribute field, only the values within that domain are valid for the field. In other words, the field will not accept a value that is not in that domain. Using domains helps ensure data integrity by limiting the choice of values for a particular field.

Attribute domains can be shared across feature classes, tables, and subtypes in a geodatabase.

For example, a feature class for water mains and a feature class that stores water laterals can use the same domain for the ground surface type field.

Domain properties

When creating or modifying a domain, you must edit the following properties:

Name and description

When creating a new domain, you specify a name that will describe the parameter it governs.

The characters ' and `, a single quote and an apostrophe, may not be used when naming a domain.

After a domain is created, when you open the properties dialog box for a feature class or table, the domain name is displayed in the domain drop-down box when choosing a domain to associate with a given field. The description is a small sentence describing the purpose of the domain.

Field type

The field type is the type of attribute field with which the domain can be associated. The field type can be set to any of the following:

Once the field type is set, the name of the domain will appear in the domain drop-down list for any field of that type in the properties dialog box.

Learn more about field types.

Domain type

When you create a domain, you must specify which type of domain you want to use. There are two types of attribute domains:

Split and merge policies

Often, when editing data, a single feature is split into two features or two separate features are combined, or merged, into a single feature. For example, in a land base database, a land parcel may be split into two separate land parcels due to rezoning. Similar zoning changes may require two adjacent parcels to be merged into a single parcel.

While the result of these types of edit operations on the feature's geometry is easily predictable, their effects on the attribute values are not. The behavior of an attribute's values when a feature is split is controlled by its split policy. When two features are merged, an attribute's value is controlled by its merge policy.

Each attribute domain has both a split policy and a merge policy. When a feature is split or merged, the geodatabase looks to these policies to determine what values the resulting feature or features have for a particular attribute.

Split policies

An attribute for any given table, feature class, or subtype can have one of three split policies that control the value of an attribute in the output object:


How split policies can be applied to attributes of a parcel object

In the parcel example above, when a parcel is split, the Area attribute is automatically assigned as a property of the resulting geometry. The value for Owner is copied to the new objects (in this database, splitting a parcel does not affect its ownership). PropertyTax is calculated based on the area, or size, of a parcel. To calculate PropertyTax for each of the new objects, the split policy divides the PropertyTax of the original parcel proportionally among the new features according to their area.

Merge policies

When two features are merged into a single feature, merge policies control the value of attributes in the new feature. An attribute for any given feature class or subtype can have one of three merge policies:


How merge policies can be applied to attributes of a Parcel object

In the parcel example above, when two parcels are merged, the Area attribute is automatically assigned as a property of the resulting geometry. Owner is assigned its default value. As the PropertyTax for the merged feature is the sum of the original features' PropertyTax, its merge policy is to sum the values.

Note that merge policies are not evaluated when merging features in the Editor. However, developers can take advantage of merge policies when writing their own merge implementations.

Coded values

The coded value section is only available for coded domains. It contains the coded values for a domain as well as an associated description of what that value represents.

The following graphic displays a method of using abbreviated text as coded values to represent categories of a feature. In this instance, LandUse categories are represented by suitable abbreviations:

Domains example

When entering coded values, the code must match the associated field type. In the above example, you could not enter an integer to represent the Residential category since the LandUse domain is associated with the Text data type.