FeatureSubtype class final
A feature subtype describes a subset of features in an ArcGISFeatureTable that share the same integer attribute value.
Feature subtypes categorize features in a dataset based on the value of an integer attribute. A subtype can define different default values or domains for fields. For example, city streets in a feature table could be categorized into three feature subtypes: local streets, collector streets, and arterial streets. Feature subtypes can also be used with utility networks to represent asset groups.
If ArcGISFeatureTable.featureSubtypes contains one or more FeatureSubtype, you can use SubtypeFeatureLayer.withFeatureTable to create a SubtypeFeatureLayer. You can then obtain a sublayer for each of the feature sub types from SubtypeFeatureLayer.subtypeSublayers. Each SubtypeSublayer allows you to configure different layer properties, such as opacity, renderer, and scale, for each FeatureSubtype. This is particularly useful for data, such as utility networks, in which many different network elements are grouped into a single subtype feature layer.
If you build an editing application, you can use ArcGISFeatureTable.createFeatureWithSubtype to create a new feature with the specified feature subtype. The FeatureSubtype.prototypeAttributes will ensure that a default set of attribute values are applied to the ArcGISFeature and the FeatureSubtype.domains are utilized.
- Implemented types
Properties
- code → dynamic
-
The feature subtype's code.
no setter
-
domains
→ Map<
String, Domain> -
The domains associated with this feature subtype.
no setter
-
fieldOverrides
→ List<
Field> -
The fields defined for this feature subtype.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name of the feature subtype.
no setter
-
prototypeAttributes
→ Map<
String, dynamic> -
The prototype attributes associated with this feature subtype.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited