Skip to main content

Domain

Summary

The Domain object contains properties that describe an attribute domain.

Discussion

Domain objects cannot be created directly. Domain properties can be accessed through the arcpy.da.ListDomains function.

Properties

Name Explanation Data type

codedValues

(Read only)

A dictionary containing the coded values for the attribute domains. The dictionary keys are the coded values. The dictionary values are the domain descriptions.

Dictionary

description

(Read only)

The description of the domain.

String

domainType

(Read only)

Specifies the domain type.

  • CodedValue—The domain type is coded value.

  • Range—The domain type is range.

String

mergePolicy

(Read only)

Specifies the merge policy that will be used.

  • AreaWeighted—The area weighted merge policy will be used.

  • DefaultValue—The default value will be used for the merge policy.

  • SumValues—The sum values merge policy will be used.

String

name

(Read only)

The name of the attribute domain.

String

owner

(Read only)

The owner of the domain.

Note:

This property only applies to domains in enterprise geodatabases.

String

range

(Read only)

A tuple containing the range domain's minimum and maximum values.

tuple

splitPolicy

(Read only)

Specifies the split policy that will be used.

  • DefaultValue—The default value will be used for the split policy.

  • Duplicate—The duplicate split policy will be used.

  • GeometryRatio—The geometry ratio split policy will be used.

String

type

(Read only)

The field type.

String