Feature

sealed class Feature : Closeable, GeoElement

A representation of a real-world geographic entity. Features are composed of both a geometry (point, polyline, or polygon) and attributes. The geometry represents the location and shape of the real-world entity; the attributes (key-value pairs) represent the fields and values that describe the entity. Examples of features include roads, fire hydrants, and property boundaries. Applications can access features from a feature layer or a feature collection to visualize the feature's geographic and attribute information, execute spatial queries, perform analyses, or make edits to the feature's data directly. Feature attribute values can be changed, but attribute definitions cannot be added, deleted, or modified.

Features are typically persisted in a data source (such as a feature service, geodatabase, shapefile, GeoJSON file, or GeoPackage) and have a common attribute schema. Features can also be stored directly in a feature collection in a map or scene. A feature collection groups logically related tables of features that may have different schema, geometry types, and symbology. See FeatureCollectionLayer for more information.

Feature is the base class for ArcGISFeature. ArcGIS features are stored in ArcGIS specific data sources such as GeodatabaseFeatureTable and ServiceFeatureTable.

Since

200.1.0

See also

Inheritors

Properties

Link copied to clipboard
open override val attributes: MutableMap<String, Any?>

The attributes of the GeoElement as a collection of name/value pairs.

Link copied to clipboard

The FeatureTable that this feature belongs to.

Link copied to clipboard
open override var geometry: Geometry?

The geometry defines the shape and location of the GeoElement.

Functions

Link copied to clipboard

Resets the attributes and geometry to the values in the data source. Discards any in-memory changes to the Feature that have not been applied to the table, and reloads the Feature geometry and all attributes.

Inherited functions

Link copied to clipboard
open override fun close()