ArcGISFeature QML Type

ArcGISFeatureTable."> ArcGISFeature QML Type | ArcGISQtQml
  • Esri.ArcGISRuntime
  • ArcGISFeature
  • An ArcGIS specific feature stored in an ArcGISFeatureTable. More...

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

    Feature

    Properties

    Signals

    Methods

    Detailed Description

    ArcGIS features are stored in ArcGIS specific data sources such as a GeodatabaseFeatureTable or ServiceFeatureTable. Since ArcGISFeature is a subclass of Feature, it contains a geometry that defines its location and shape, and a set of attributes that describe the real-world entity it represents.

    In addition, ArcGISFeature objects can also contain:

    • Feature attachments such as images or documents, that can be edited, updated or deleted.
    • Feature subtypes that define different default values or domains for fields.
    • The ability to relate this feature to another ArcGISFeature.
    • Geometry that has m-values, which are typically used for linear referencing.

    If you create a ServiceFeatureTable from the URL of a feature service, features in the table are initially in one of the following states:

    • A minimum set of attributes are available in the table, and m-values are omitted. This is an optimization for faster rendering.
    • All attributes defined by the service are available in the table, including m-values, which might be NaN.

    The initial state of features is determined by the feature request mode of the table. For important details, see Enums.FeatureRequestMode.

    By default, a query on ArcGISFeature objects in a minimum state returns them in the same state. To access all attributes (or the m-values) of features returned by a query, you must load the features. You can do one of the following:

    For more information, see the class description for ServiceFeatureTable.

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

    See also Loadable, Attachment, FeatureSubtype, RelationshipInfo, and ArcGISFeatureTable.

    Property Documentation

    [read-only] attachments : AttachmentListModel

    Returns the list of attachments on this feature.

    Attachments are returned in descending order based on their ID.


    [read-only] canEditAttachments : bool

    Specifies if the attachments of this feature are editable (read-only).

    true if attachments on this feature can be edited, otherwise false.


    [read-only] canUpdateGeometry : bool

    Specifies if the geometry of this feature can be updated (read-only).

    It takes into account the feature table properties, as well as ownership-based access control.

    true if the geometry of this feature can be edited, otherwise false.


    [read-only] loadError : Error

    Returns the load error (read-only).

    Note: load errors are also reported on the error property and emit the errorChanged signal.

    See also Loadable.


    [read-only] loadStatus : Enums.LoadStatus

    Returns the load status (read-only).

    See also Loadable and Enums.LoadStatus.


    Signal Documentation

    canEditAttachmentsChanged()

    Emitted when the canEditAttachments property changes.

    Note: The corresponding handler is onCanEditAttachmentsChanged.


    canUpdateGeometryChanged()

    Emitted when the canUpdateGeometry property changes.

    Note: The corresponding handler is onCanUpdateGeometryChanged.


    loadErrorChanged()

    Emitted when the loadError property of this ArcGISFeature changes.

    Note: load errors are also reported on the error property and emit the errorChanged signal.

    Note: The corresponding handler is onLoadErrorChanged.

    See also Loadable and Object.


    loadStatusChanged()

    Emitted when the loadStatus property of this ArcGISFeature changes.

    Note: The corresponding handler is onLoadStatusChanged.

    See also Loadable.


    Method Documentation

    void cancelLoad()

    See also Loadable.


    [since Esri.ArcGISRuntime 100.9] FeatureSubtype featureSubtype()

    Gets the corresponding FeatureSubtype for this feature.

    If this feature belongs to an ArcGISFeatureTable that defines a ArcGISFeatureTable::subtypeField, a FeatureSubtype that matches FeatureSubtype::code with this feature's attribute value for subtype field is returned; otherwise, this will return null.

    This method was introduced in Esri.ArcGISRuntime 100.9.


    void load()

    See also Loadable.


    [since 100.1] void relateFeature(ArcGISFeature feature)

    Sets up a relationship between this feature and a given feature.

    If this relationship is keyed on an Object ID or Global ID, and the origin feature in this call has been created locally, first you must call the ServiceGeodatabase::applyEdits method on the ServiceFeatureTable::serviceGeodatabase. Next, you must call Feature::refresh to get the new Object ID and Global ID that are generated by the service. Otherwise, the destination feature will refer to an outdated ID rather than the one defined for the relationship.

    This method was introduced in Qt 100.1.


    [since Esri.ArcGISRuntime 100.1] void relateFeatureWithRelationshipInfo(ArcGISFeature feature, RelationshipInfo relationshipInfo)

    Sets up a relationship between this feature and the provided feature based on the given relationshipInfo. See RelationshipInfo for more details.

    • feature - The feature to which this feature should be related.
    • relationshipInfo - The relationship information used to relate the two features.

    This method was introduced in Esri.ArcGISRuntime 100.1.


    void retryLoad()

    See also Loadable.


    [since 100.1] void unrelateFeature(ArcGISFeature feature)

    Removes the relationship between this feature and a given feature.

    This method was introduced in Qt 100.1.


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