Domain
Feature Description
Domain describes the valid value range of a field, representing all possible valid values for a specific field in a database table. For example, the normal water pressure range for pipelines should not exceed 100psi. Values exceeding this threshold indicate abnormal pressure requiring immediate attention.
Feature Entry
- Workspace Manager -> Vector Dataset Context Menu -> Attribute Management -> Domain.
- Vector Dataset Attribute Panel -> Domain Section.
Steps
- Click Workspace Manager -> Vector Dataset Context Menu -> Attribute Management -> Domain button to open the Domain section in Dataset Attribute Panel.
- Click the domain column cell for target field, select domain information from dropdown. If no matching domain exists, choose New or click the Manage button to create new domain. Detailed operations:
- Click Add in Manage Domain dialog to create new domain record. Modify domain name, type, domain type and description:
- Name: Set domain name (default: NEW_DOMAIN).
- Scope of Application: Shows domain application scope (default: All data).
- Type: Set compatible data type (default: Double). Must match existing field types. E.g., double type domain only applies to double-type fields.
- Domain Type: Two types available:
- Enumeration: Lists all valid members. Requires editing Encode and Description through Add/Delete in Domain Properties.
Example: "LandUse" domain includes "Arable Land", "Orchard", "Forest", "Grassland", "Commercial", "Industrial", "Residential", "Public Service", "Special Use", "Transportation", "Water Facilities", and "Other". When applied to "Class" field, users can select values from dropdown. Invalid values display error icons.
Figure: Creation and Usage of Enumeration Domain - Bounds: Defines numerical value range. Requires setting Max, Min and Interval Type:
- Closed Interval: a≤x≤b
- Open Interval: a<x<b
- Left Open Right Close: a<x≤b
- Left Close Right Open: a≤x<b
Example: "Height" domain with min=30, max=70 (open interval). Invalid inputs display error icons.
Figure: Creation and Usage of Bounds Domain
- Enumeration: Lists all valid members. Requires editing Encode and Description through Add/Delete in Domain Properties.
- Description: Add domain description for quick reference.
- Set domain constraints in Domain Properties group:
- For enumeration: Set code-description pairs.
- For bounds: Define min/max values and interval type.
- Click Add in Manage Domain dialog to create new domain record. Modify domain name, type, domain type and description:
- After configuration, assign domains to fields in Dataset Attribute Panel's Domain section and click Apply.
- Using domains in attribute tables:
- Enumeration fields show dropdown lists for selection.
- Bounds fields validate numerical inputs. Out-of-range values display error icon with tooltip: "The current value does not match the domain information. Please re-enter."
Related Topics