Skip To Content ArcGIS for Developers Sign In Dashboard

ArcGISFeature QML Type

A feature from an ArcGIS service, such as a feature in a ServiceFeatureTable. More...

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

Feature

Properties

Signals

Methods

Detailed Description

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

Provides access to all of the feature's fields, values of the feature's attributes, and also to its geometry if one is set. A feature's attribute values can be changed, but fields cannot be added, deleted, or modified.

An ArcGISFeature can contain:

  • A set of attributes of the real-world entity it represents.
  • A geometry which describes the location and the shape of the entity.
  • Zero or more feature attachments such as images or documents.

See also Loadable.

Property Documentation

attachments : AttachmentListModel

Returns the attachment list model used for querying and editing this feature's attachments.


canEditAttachments : bool

Specifies if the attachments of this feature are editable (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.


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.


loadStatus : Enums.LoadStatus

Returns the load status (read-only).

See also Loadable and Enums.LoadStatus.


Signal Documentation

attachmentsChanged()

Emitted when the attachments property changes.


canEditAttachmentsChanged()

Emitted when the canEditAttachments property changes.


canUpdateGeometryChanged()

Emitted when the canUpdateGeometry property changes.


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.

See also Loadable and Object.


loadStatusChanged()

Emitted when the loadStatus property of this ArcGISFeature changes.

See also Loadable.


Method Documentation

void cancelLoad()

See also Loadable.


void load()

See also Loadable.


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 ServiceFeatureTable.applyEdits and refreshObjectId to obtain the new object ID and global ID generated by the service. If this is not done, then the destination feature will refer to an outdated ID and will not be considered related.

This QML method was introduced in Qt 100.1.


void relateFeatureWithRelationshipInfo(ArcGISFeature feature, RelationshipInfo relationshipInfo)

Sets up a relationship between this feature and a given feature based on the relationshipInfo.

This QML method was introduced in Qt 100.1.


void retryLoad()

See also Loadable.


void unrelateFeature(ArcGISFeature feature)

Removes the relationship between this feature and a given feature.

This QML method was introduced in Qt 100.1.



Feedback on this topic?