domain (i.e. field)

July 19, 2019 ยท View on GitHub

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 a particular attribute. Using domains helps ensure data integrity by limiting the choice of values for a particular field. Attribute domains can be shared across scene layers like 3D Object scene layers or Building Scene Layers.

cmn::field, cmn::field

Properties

PropertyTypeDescription
typestringType of domain
Possible values are:
  • codedValue
  • range
namestringName of the domain. Must be unique per Scene Layer.
descriptionstringDescription of the domain
fieldTypestringThe field type is the type of attribute field with which the domain can be associated.
Possible values are:
  • esriFieldTypeDate
  • esriFieldTypeSingle
  • esriFieldTypeDouble
  • esriFieldTypeInteger
  • esriFieldTypeSmallInteger
  • esriFieldTypeString
rangenumber[2]Range of the domain. Only numeric types are possible.
codedValuesdomainCodedValue[]Range of the domain. Only string types are possible.
mergePolicystringMerge policy for the domain. Not used by Scene Layers.
Possible values are:
  • esriMPTDefaultValue
  • esriMPTSumValues
  • esriMPTAreaWeighted
splitPolicystringSplit policy for the domain. Not used by Scene Layers.
Possible values are:
  • esriSPTGeometryRatio
  • esriSPTDuplicate
  • esriSPTDefaultValue

Note: properties in bold are required

Examples

Example: domain

 {
  "type": "codedValue",
  "name": "Phases",
  "description": "Phases",
  "codedValues": [
    {
      "name": "Existing",
      "code": 0
    },
    {
      "name": "Baby Room Overhaul",
      "code": 1
    },
    {
      "name": "Roof Garden",
      "code": 2
    }
  ],
  "mergePolicy": "esriMPTDefaultValue",
  "splitPolicy": "esriSPTDefaultValue"
}