Class Feature
A representation of a real-world geographic entity.
Implements
Namespace: Esri.ArcGISRuntime.Data
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class Feature : GeoElement, INotifyPropertyChanged
Remarks
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
Feature is the base class for ArcGISFeature. ArcGIS features are stored in ArcGIS specific data sources such as GeodatabaseFeatureTable and ServiceFeatureTable.
ArcGISFeature ArcGISFeatureTable GeoPackageFeatureTableProperties
Name | Description |
---|---|
FeatureTable | Gets the FeatureTable that this feature belongs to. |
Geometry | Gets or sets the Geometry of the feature. |
Methods
Name | Description |
---|---|
GetAttributeValue(Field) | Looks up attribute by Field and returns its current value. |
GetAttributeValue(String) | Looks up attribute by name and returns its current value. |
Refresh() | Resets the attributes and geometry to the values in the data source. |
SetAttributeValue(Field, Object) | Looks up attribute by Field and updates attribute to the specified value. |
SetAttributeValue(String, Object) | Updates an attribute of the feature with a given value. |
Name | Description |
---|---|
INotifyPropertyChanged.PropertyChanged | Occurs when a property value changes. |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |