A representation of a real-world geographic entity. More...
|Inherits:||Esri::ArcGISRuntime::Object and Esri::ArcGISRuntime::GeoElement|
|Esri::ArcGISRuntime::FeatureTable *||featureTable() const|
Reimplemented Public Functions
|virtual Esri::ArcGISRuntime::AttributeListModel *||attributes() const override|
|virtual Esri::ArcGISRuntime::Geometry||geometry() const override|
|virtual void||setGeometry(const Esri::ArcGISRuntime::Geometry &geometry) override|
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.
See also ArcGISFeature, ArcGISFeatureTable, GeoPackageFeatureTable, OgcFeatureCollectionTable, ShapefileFeatureTable, WfsFeatureTable, and FeatureCollectionTable.
Member Function Documentation
[signal, since Esri:void Feature:
: A r c GISRuntime 100.2.1] : geometry Changed()
Signal emitted when the geometry is changed.
This function was introduced in Esri::ArcGISRuntime 100.2.1.
See also GeoElement.
[override virtual] Feature:
[override virtual] Esri:
: *Feature: A r c GISRuntime: : Attribute List Model : attributes() const
Reimplements: GeoElement::attributes() const.
Returns a list model of all the feature attributes as key-value pairs.
: Feature: A r c GISRuntime: : Feature Object Type : feature Object() const Type
Returns the type of feature.
: *Feature: A r c GISRuntime: : Feature Table : feature Table() const
Returns the FeatureTable that this feature belongs to.
[override virtual] Esri:
: Feature: A r c GISRuntime: : Geometry : geometry() const
Reimplements: GeoElement::geometry() const.
Returns the geometry for this feature.
See also setGeometry().
[since Esri:bool Feature:
: A r c GISRuntime 100.4] : refresh()
Resets the attributes and geometry to the values in the data source, returning
true on success or
Discards any in-memory changes to the feature that have not been applied to its table, and reloads the feature's geometry and all attributes.
This function was introduced in Esri::ArcGISRuntime 100.4.
[override virtual] void Feature:
: set Geometry(const Esri: : &geometry) A r c GISRuntime: : Geometry
Reimplements: GeoElement::setGeometry(const Esri::ArcGISRuntime::Geometry &geometry).
Sets the geometry for the feature.
See also geometry().