Show / Hide Table of Contents

Class Feature

A representation of a real-world geographic entity.

Inheritance
System.Object
GeoElement
Feature
ArcGISFeature
Implements
System.ComponentModel.INotifyPropertyChanged
GeoElement.Attributes
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 FeatureCollectionTable for more information.

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

ArcGISFeature ArcGISFeatureTable GeoPackageFeatureTable OgcFeatureCollectionTable ShapefileFeatureTable WfsFeatureTable FeatureCollectionTable

Properties

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

TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7

Relevant samples

Create, delete, and update features: Add, delete, and update features (geometry and attributes) in a feature layer.
In This Article
Back to top Copyright © 2022 Esri.