Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 2.23 KB

domain.cmn.md

File metadata and controls

50 lines (41 loc) · 2.23 KB

domain (i.e. field)

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.

Related:

cmn::field, cmn::field

Properties

Property Type Description
type string Type of domain
Possible values are:
  • codedValue
  • range
name string Name of the domain. Must be unique per Scene Layer.
description string Description of the domain
fieldType string The field type is the type of attribute field with which the domain can be associated.
Possible values are:
  • esriFieldTypeDate
  • esriFieldTypeSingle
  • esriFieldTypeDouble
  • esriFieldTypeInteger
  • esriFieldTypeSmallInteger
  • esriFieldTypeString
range number[2] Range of the domain. Only numeric types are possible.
codedValues domainCodedValue[] Range of the domain. Only string types are possible.
mergePolicy string Merge policy for the domain. Not used by Scene Layers.
Possible values are:
  • esriMPTDefaultValue
  • esriMPTSumValues
  • esriMPTAreaWeighted
splitPolicy string Split 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"
}