Skip to main content

Domain

Resumen

The Domain object contains properties that describe an attribute domain.

Debate

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

Propiedades

Nombre Explicación Tipo de datos

codedValues

(Solo lectura)

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

(Solo lectura)

The description of the domain.

String

domainType

(Solo lectura)

Specifies the domain type.

  • CodedValue—The domain type is coded value.

  • Range—The domain type is range.

String

mergePolicy

(Solo lectura)

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

(Solo lectura)

The name of the attribute domain.

String

owner

(Solo lectura)

The owner of the domain.

Nota:

This property only applies to domains in enterprise geodatabases.

String

range

(Solo lectura)

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

tuple

splitPolicy

(Solo lectura)

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

(Solo lectura)

The field type.

String