FeatureTable class final

A table of features that typically represent real-world objects such as fire hydrants, roads, and forests.

This is the base class for a number of different feature tables, such as ServiceFeatureTable, FeatureCollectionTable, and GeoPackageFeatureTable.

The records in a feature table must all have geometry (shape and location) or have no geometry (just attribute values). If the records have geometry (FeatureTable.hasGeometry is true), you can display the features by creating a FeatureLayer from the feature table and adding the feature layer to the ArcGISMap or ArcGISScene's collection of operational layers (GeoModel.operationalLayers).

FeatureTable provides methods for spatial and attribute querying (for example, FeatureTable.queryFeatures), and methods to add, update, and delete features (such as FeatureTable.addFeature, FeatureTable.updateFeature, and FeatureTable.deleteFeature).

Implemented types
Mixed in types
Implementers

Properties

displayName String
A user-friendly name that can be displayed in the UI (for example, in a Table of Contents).
getter/setter pair
extent Envelope?
The geographic extent of features within the table.
no setter
fields List<Field>
The collection of Field objects representing the fields of the feature table.
no setter
geometryType GeometryType
The type of geometry of the features stored in this table.
no setter
hasGeometry bool
True if the feature table supports geographic features, false otherwise.
no setter
hashCode int
The hash code for this object.
no setteroverride
hasM bool
True if the feature table supports geometries with M values, false otherwise.
no setter
hasZ bool
True if the feature table supports geometries with Z values, false otherwise.
no setter
isEditable bool
True if this feature table is editable, false otherwise.
no setter
layer Layer?
The layer that displays this table, if any.
no setter
loadError ArcGISException?
The load error.
no setterinherited
loadStatus LoadStatus
The load status.
no setterinherited
numberOfFeatures int
The number of features in the table.
no setter
onLoadStatusChanged Stream<LoadStatus>
A stream that reports changes to the LoadStatus.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spatialReference SpatialReference?
The spatial reference of the table.
no setter
tableName String
The name of the table in the source dataset.
no setter

Methods

addFeature(Feature feature) Future<void>
Adds a feature to the table.
addFeatureCancelable(Feature feature) CancelableOperation<void>
Cancelable version of addFeature. See that method for more information.
addFeatures(List<Feature> features) Future<void>
Adds a collection of features to the table.
addFeaturesCancelable(List<Feature> features) CancelableOperation<void>
Cancelable version of addFeatures. See that method for more information.
canAdd() bool
Determines whether you can add new features to the table.
cancelLoad() → void
Cancels loading metadata for the object.
inherited
canDelete({required Feature feature}) bool
Determines whether you can delete the feature from the table.
canEditGeometry() bool
Determines whether you can edit the geometry field in a table.
canUpdate({required Feature feature}) bool
Determines whether you can update the feature in the table.
createFeature({Map<String, dynamic> attributes = const {}, Geometry? geometry}) Feature
Creates a new feature with the provided attribute values and, optionally, geometry.
deleteFeature(Feature feature) Future<void>
Deletes a feature from the table.
deleteFeatureCancelable(Feature feature) CancelableOperation<void>
Cancelable version of deleteFeature. See that method for more information.
deleteFeatures(List<Feature> features) Future<void>
Deletes a collection of features from the table.
deleteFeaturesCancelable(List<Feature> features) CancelableOperation<void>
Cancelable version of deleteFeatures. See that method for more information.
getField({required String fieldName}) Field?
Retrieves the field with the given name.
load() Future<void>
Loads the metadata for the object asynchronously.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryExtent({required QueryParameters queryParameters}) Future<Envelope>
Determines the minimum bounding envelope that contains features satisfying the provided query parameters.
queryExtentCancelable({required QueryParameters queryParameters}) CancelableOperation<Envelope>
Cancelable version of queryExtent. See that method for more information.
queryFeatureCount({required QueryParameters queryParameters}) Future<int>
Determines the count of features that satisfy the provided query parameters.
queryFeatureCountCancelable({required QueryParameters queryParameters}) CancelableOperation<int>
Cancelable version of queryFeatureCount. See that method for more information.
queryFeatures({required QueryParameters parameters}) Future<FeatureQueryResult>
Submits a query against the table.
queryFeaturesCancelable({required QueryParameters parameters}) CancelableOperation<FeatureQueryResult>
Cancelable version of queryFeatures. See that method for more information.
queryStatistics({required StatisticsQueryParameters statisticsQueryParameters}) Future<StatisticsQueryResult>
Calculates values for the requested statistics.
queryStatisticsCancelable({required StatisticsQueryParameters statisticsQueryParameters}) CancelableOperation<StatisticsQueryResult>
Cancelable version of queryStatistics. See that method for more information.
retryLoad() Future<void>
Loads or retries loading metadata for the object asynchronously.
inherited
toString() String
A string representation of this object.
inherited
updateFeature(Feature feature) Future<void>
Updates a feature in the table.
updateFeatureCancelable(Feature feature) CancelableOperation<void>
Cancelable version of updateFeature. See that method for more information.
updateFeatures(List<Feature> features) Future<void>
Updates a collection of features in the table.
updateFeaturesCancelable(List<Feature> features) CancelableOperation<void>
Cancelable version of updateFeatures. See that method for more information.

Operators

operator ==(Object other) bool
The equality operator.
override