Feature QML Type

  • Esri.ArcGISRuntime
  • Feature
  • A representation of a real-world geographic entity. More...

    Import Statement: import Esri.ArcGISRuntime
    Since: Esri.ArcGISRuntime 100.0
    Inherits:

    GeoElement

    Inherited By:

    ArcGISFeature

    Properties

    Signals

    Methods

    Detailed Description

    Note: You cannot declare or create a component of this type in QML code.

    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.

    Property Documentation

    [read-only] attributes : AttributeListModel

    A list model of all feature attributes and values.


    [read-only] featureObjectType : Enums.FeatureObjectType

    Returns the feature type (read-only).

    See also Enums.FeatureObjectType.


    [read-only] featureTable : FeatureTable

    Returns the FeatureTable that this feature belongs to (read-only).


    geometry : Geometry

    The feature's geometry.


    Signal Documentation

    geometryChanged()

    Emitted when the geometry property of this Feature changes.

    Note: The corresponding handler is onGeometryChanged.


    Method Documentation

    [since Esri.ArcGISRuntime 100.4] bool refresh()

    Resets the attributes and geometry to the values in the data source, returning true on success or false otherwise.

    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 method was introduced in Esri.ArcGISRuntime 100.4.


    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.