A Feature stored in an ArcGISFeatureTable. An ArcGISFeature can contain:
A set of attributes that describe the real-world entity it represents
A geometry that defines its location and shape. The geometry might contain m-values, which are typically used for linear referencing.
Zero or more feature attachments such as images or documents
A feature's attribute values can be changed, but attribute definitions cannot be added, deleted, or modified.
If you create a ServiceFeatureTable from the URL of a feature service, features in the table are initially in one of the following states:
A minimum set of attributes are available in the table, and m-values are omitted. This is an optimization for faster rendering.
All attributes defined by the service are available in the table, including m-values, which might be NaN
The initial state of features is determined by the feature request mode of the table. For important details, see FeatureRequestMode.
By default, a query on ArcGISFeatures in a minimum state will return them in the same state. To access all attributes (or the m-values) of features returned by a query, you must load the features. You can do one of the following:
Call Loadable.load() on each feature
Call ServiceFeatureTable.loadOrRefreshFeatures(MutableListImpl) and pass a mutable array of the features to be loaded
Call ServiceFeatureTable.queryFeatures(QueryParameters, QueryFeatureFields) with the constant QueryFeatureFields.LoadAll, which returns all features in a fully loaded state
For more information, see the class description for ServiceFeatureTable.
Adds a new attachment for this feature.
Cancels loading metadata for the Loadable object.
Deletes an attachment of this feature.
Deletes a list of attachments from this feature.
Gets the list of attachments on this feature. Attachments are returned in descending order based on their id.
Gets the corresponding FeatureSubtype for this feature If this feature belongs to an ArcGISFeatureTable that defines an ArcGISFeatureTable.getSubtypeField(), a FeatureSubtype that matches FeatureSubtype.getCode() with this feature's attribute value for subtype field is returned; otherwise, this will return null.
Sets up a relationship between this feature and the provided feature based on the given relationshipInfo if it is not null.
Removes the relationship between this feature and the provided feature. If there is no existing relationship between the features, an
IllegalStateException is thrown.
Updates an attachment for this feature.