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.
-
addFeatures(
List< Feature> features) → Future<void> - Adds a collection of features to the table.
-
canAdd(
) → bool - Determines whether you can add new features to the table.
-
cancelLoad(
) → void -
Cancels loading metadata for the object.
inherited
-
canDelete(
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(
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.
-
deleteFeatures(
List< Feature> features) → Future<void> - Deletes a collection of features from the table.
-
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(
QueryParameters queryParameters) → Future< Envelope> - Determines the minimum bounding envelope that contains features satisfying the provided query parameters.
-
queryFeatureCount(
QueryParameters queryParameters) → Future< int> - Determines the count of features that satisfy the provided query parameters.
-
queryFeatures(
QueryParameters queryParameters) → Future< FeatureQueryResult> - Submits a query against the table.
-
queryStatistics(
StatisticsQueryParameters statisticsQueryParameters) → Future< StatisticsQueryResult> - Calculates values for the requested statistics.
-
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.
-
updateFeatures(
List< Feature> features) → Future<void> - Updates a collection of features in the table.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override