A table of features that typically represents real-world objects such as fire hydrants, roads, and forests. More...
Member Function Documentation[override virtual noexcept]
FeatureTable::~FeatureTable()
Destructor.
[since Esri::ArcGISRuntime 200.2]
QFuture<void> FeatureTable::addFeatureAsync(Esri::ArcGISRuntime::Feature *feature)
Adds a feature to the table.
Adding a feature that contains a Geometry causes the geometry to become simplified. This may change a single part geometry to a multipart geometry, or round off X, Y, Z, and M coordinate values that are above the resolution set by the SpatialReference.
Adding a feature to a GeodatabaseFeatureTable in a stand-alone mobile geodatabase created with ArcGIS Pro is not supported when the table participates in a controller dataset, such as a utility network or parcel fabric. Use canAdd to determine if this operation is allowed.
This method returns a QFuture for the asynchronous operation. Use future.then() to continue processing when the operation completes. Use future.onFailed() to handle exceptions of type ErrorException.
See Working with QFuture for further details.
This function was introduced in Esri::ArcGISRuntime 200.2.
See also FeatureServiceSessionType.
[since Esri::ArcGISRuntime 200.2]
QFuture<void> FeatureTable::addFeaturesAsync(const QList<Esri::ArcGISRuntime::Feature *> &features)
Adds a collection of features to the table.
This method returns a QFuture for the asynchronous operation. Use future.then() to continue processing when the operation completes. Use future.onFailed() to handle exceptions of type ErrorException.
See Working with QFuture for further details.
This function was introduced in Esri::ArcGISRuntime 200.2.
See also FeatureServiceSessionType.
bool FeatureTable::canAdd() constReturns true
if you can add new features to the table.
The result of this method accounts for the table's attachment and geometry capabilites, and ownership-based access control.
Although this method may state that the table allows new features to be added, the application may not be licensed to permit this. For example, a user cannot add features to a secured feature table if the application is licensed at the Lite level (LicenseLevel::Lite).
bool FeatureTable::canDelete(Esri::ArcGISRuntime::Feature *feature) constReturns true
if the provided feature can be deleted from the table.
The result of this method accounts for the table's attachment and geometry capabilites, and ownership-based access control.
Although this method may state that the table allows the feature to be deleted, the application may not be licensed to permit this. For example, a user cannot delete features from a secured feature table if the application is licensed at the Lite level (LicenseLevel::Lite).
bool FeatureTable::canEditGeometry() constReturns true
if the feature table allows editing a feature's geometry.
The result of this method accounts for the table's ownership-based access control.
Although this method may state that the table allows geometry fields to be edited, the application may not be licensed to permit this. For example, a user cannot update geometry in a secured feature table if the application is licensed at the Lite level (LicenseLevel::Lite).
bool FeatureTable::canUpdate(Esri::ArcGISRuntime::Feature *feature) constReturns true
if the provided feature can be updated in the table.
The result of this method accounts for the table's attachment and geometry capabilites, and ownership-based access control.
Although this method may state that the table allows the feature to be updated, the application may not be licensed to permit this. For example, a user cannot update features in a secured feature table if the application is licensed at the Lite level (LicenseLevel::Lite).
[override virtual]
void FeatureTable::cancelLoad()
Reimplements: Loadable::cancelLoad().
Cancels loading the metadata for the object.
Esri::ArcGISRuntime::Feature *FeatureTable::createFeature(QObject *parent = nullptr) constCreates and returns a new, empty feature with an optional parent.
The new feature is only available in memory at this point. Execute addFeatureAsync(Esri::ArcGISRuntime::Feature*) to commit the new Feature to the table.
Esri::ArcGISRuntime::Feature *FeatureTable::createFeature(const QVariantMap &attributes, const Esri::ArcGISRuntime::Geometry &geometry, QObject *parent = nullptr) constReturns a new feature with the provided attribute values and, optionally, geometry.
The new feature is only available in memory at this point. Execute addFeatureAsync(Esri::ArcGISRuntime::Feature*) to commit the new Feature to the table.
Note: The keys of the attributes dictionary will be treated as case-insensitive.
See Internal data structures with case-insensitive string keys for further details.
[since Esri::ArcGISRuntime 200.2]
QFuture<void> FeatureTable::deleteFeatureAsync(Esri::ArcGISRuntime::Feature *feature)
Deletes a feature from the table.
Deleting a feature from a GeodatabaseFeatureTable in a stand-alone mobile geodatabase created with ArcGIS Pro is not supported when the table participates in a controller dataset, such as a utility network or parcel fabric. Use canDelete(Esri::ArcGISRuntime::Feature*) to determine if this operation is allowed.
This method returns a QFuture for the asynchronous operation. Use future.then() to continue processing when the operation completes. Use future.onFailed() to handle exceptions of type ErrorException.
See Working with QFuture for further details.
This function was introduced in Esri::ArcGISRuntime 200.2.
See also FeatureServiceSessionType.
[since Esri::ArcGISRuntime 200.2]
QFuture<void> FeatureTable::deleteFeaturesAsync(const QList<Esri::ArcGISRuntime::Feature *> &features)
Deletes a collection of features from the table.
This method returns a QFuture for the asynchronous operation. Use future.then() to continue processing when the operation completes. Use future.onFailed() to handle exceptions of type ErrorException.
See Working with QFuture for further details.
This function was introduced in Esri::ArcGISRuntime 200.2.
See also FeatureServiceSessionType.
[since Esri::ArcGISRuntime 100.3]
QString FeatureTable::displayName() const
Returns a user-friendly name that can be displayed in the UI (for example, in a Table of Contents).
If the table is displayed with a FeatureLayer, the FeatureTable::displayName is used as the FeatureLayer::name.
The default value is tableName.
This function was introduced in Esri::ArcGISRuntime 100.3.
See also setDisplayName().
[signal]
void FeatureTable::doneLoading(const Esri::ArcGISRuntime::Error &loadError)
Signal emitted when this object is done loading.
Note: If there is a load error it will also be emitted on the errorOccurred
signal.
Returns the geographic extent of features within the table.
This is calculated differently for specific types and modes of feature tables:
Returns the type of feature table.
Esri::ArcGISRuntime::Field FeatureTable::field(const QString &fieldName) constReturns a Field object describing the field corresponding to the provided fieldName.
QList<Esri::ArcGISRuntime::Field> FeatureTable::fields() constReturns a list of Field objects representing the fields of the feature table.
Esri::ArcGISRuntime::GeometryType FeatureTable::geometryType() constReturns the type of geometry of the features stored in this table.
If hasGeometry is false
, then the geometry type is GeometryType::Unknown.
Returns true
if the dataset contains a geometry field.
If true
, the dataset contains geographic features. If false
, the dataset contains non-spatial records, similar to a database table.
[since Esri::ArcGISRuntime 100.2]
bool FeatureTable::hasM() const
Returns true
if the feature table supports geometries with M values, false
otherwise.
This function was introduced in Esri::ArcGISRuntime 100.2.
[since Esri::ArcGISRuntime 100.2]
bool FeatureTable::hasZ() const
Returns true
if the feature table supports geometries with Z values, false
otherwise.
This function was introduced in Esri::ArcGISRuntime 100.2.
bool FeatureTable::isEditable() constReturns true
if this feature table is editable, false
otherwise.
Underlying file permissions (for subclasses such as ShapefileFeatureTable and GeodatabaseFeatureTable) can be changed while the feature table is open. In these cases the value of this property may not be accurate.
See also ArcGISFeatureTable.
[override virtual, since Esri::ArcGISRuntime 100.1]
bool FeatureTable::isPopupEnabled() const
Reimplements: PopupSource::isPopupEnabled() const.
Returns a flag indicating whether the PopupDefinition defined on the PopupSource is enable / disable.
This function was introduced in Esri::ArcGISRuntime 100.1.
[since Esri::ArcGISRuntime 100.7]
Esri::ArcGISRuntime::Layer *FeatureTable::layer() const
Returns the layer that displays this table, if any.
The Layer type depends on how the feature table is created. For example, a Layer will be an AnnotationLayer if the FeatureTable is created from a table that supports annotation. See Layer for more information about the supported layer types.
The layer will be nullptr
if the feature table does not contain spatial features (where hasGeometry is false
).
This function was introduced in Esri::ArcGISRuntime 100.7.
[override virtual]
void FeatureTable::load()
Reimplements: Loadable::load().
Loads the metadata for the object asynchronously.
[override virtual]
Esri::ArcGISRuntime::Error FeatureTable::loadError() const
Reimplements: Loadable::loadError() const.
Returns the load error.
See also Error.
[override virtual]
Esri::ArcGISRuntime::LoadStatus FeatureTable::loadStatus() const
Reimplements: Loadable::loadStatus() const.
Returns the load status.
See also LoadStatus.
[signal]
void FeatureTable::loadStatusChanged(Esri::ArcGISRuntime::LoadStatus loadStatus)
Signal emitted when the load status changes for this object.
See also Loadable.
qint64 FeatureTable::numberOfFeatures() constReturns the number of features in the table.
If all the features are stored in the local table, for example with a GeodatabaseFeatureTable or a ShapefileFeatureTable, then the numberOfFeatures will return the full number of features.
If the table is created from a service, for example, ServiceFeatureTable or WfsFeatureTable, the numberOfFeatures will only return the number of features in the local table cache. You need to populate the local table cache to return a value for numberOfFeatures. Do this by rendering the features in a Map or Scene with a FeatureLayer, or by querying the feature table. Consider the feature table's FeatureRequestMode in both cases. See ServiceFeatureTable or WfsFeatureTable for more information. If you want to return the full number of features in the service, execute queryFeatureCountAsync(const Esri::ArcGISRuntime::QueryParameters&) and pass "1=1" to the QueryParameters::whereClause.
[override virtual, since Esri::ArcGISRuntime 100.1]
Esri::ArcGISRuntime::PopupDefinition *FeatureTable::popupDefinition() const
Reimplements: PopupSource::popupDefinition() const.
Returns the pop-up definition.
The PopupDefinition associated with the popup source. A nullptr
if an error occurs or if the popup source is not associated with a pop-up definition.
This function was introduced in Esri::ArcGISRuntime 100.1.
See also setPopupDefinition() and PopupSource.
[since Esri::ArcGISRuntime 200.7]
Esri::ArcGISRuntime::PopupDefinition *FeatureTable::popupDefinition(Esri::ArcGISRuntime::Feature *feature) const
Returns the popup definition for the given feature in the feature table.
This function was introduced in Esri::ArcGISRuntime 200.7.
See also FeatureCollectionTable::setPopupDefinitionOverride.
[since Esri::ArcGISRuntime 200.2]
QFuture<Esri::ArcGISRuntime::Envelope> FeatureTable::queryExtentAsync(const Esri::ArcGISRuntime::QueryParameters &queryParameters)
Determines the minimum bounding envelope that contains features satisfying the provided query parameters.
If no features meet the query criteria, an empty envelope is returned.
This method returns a QFuture for the asynchronous operation. Use future.then() to continue processing when the operation completes. Use future.onFailed() to handle exceptions of type ErrorException.
See Working with QFuture for further details.
This function was introduced in Esri::ArcGISRuntime 200.2.
See also FeatureServiceSessionType.
[since Esri::ArcGISRuntime 200.2]
QFuture<quint64> FeatureTable::queryFeatureCountAsync(const Esri::ArcGISRuntime::QueryParameters &queryParameters)
Determines the count of features that satisfy the provided query parameters.
This method returns a QFuture for the asynchronous operation. Use future.then() to continue processing when the operation completes. Use future.onFailed() to handle exceptions of type ErrorException.
See Working with QFuture for further details.
This function was introduced in Esri::ArcGISRuntime 200.2.
See also FeatureServiceSessionType.
[since Esri::ArcGISRuntime 200.2]
QFuture<Esri::ArcGISRuntime::FeatureQueryResult *> FeatureTable::queryFeaturesAsync(const Esri::ArcGISRuntime::QueryParameters &queryParameters, QObject *parent = nullptr)
Queries for features in this FeatureTable using the provided.
This method returns a QFuture for the asynchronous operation. Use future.then() to continue processing when the operation completes. Use future.onFailed() to handle exceptions of type ErrorException.
See Working with QFuture for further details.
This function was introduced in Esri::ArcGISRuntime 200.2.
[since Esri::ArcGISRuntime 100.2]
QFuture<Esri::ArcGISRuntime::StatisticsQueryResult *> FeatureTable::queryStatisticsAsync(const Esri::ArcGISRuntime::StatisticsQueryParameters &statisticsQueryParameters, QObject *parent = nullptr)
Calculates values for the requested statistics.
Statistics query parameters may also define fields on which results are grouped or sorted.
This method returns a QFuture for the asynchronous operation. Use future.then() to continue processing when the operation completes. Use future.onFailed() to handle exceptions of type ErrorException.
See Working with QFuture for further details.
This function was introduced in Esri::ArcGISRuntime 100.2.
See also FeatureServiceSessionType.
[override virtual]
void FeatureTable::retryLoad()
Reimplements: Loadable::retryLoad().
Loads or retries loading metadata for the object asynchronously.
Will retry loading the metadata if the object is failed to load. Will load the object if it is not loaded. Will not retry to load the object if the object is loaded. Will always call the done loading if this is called.
[since Esri::ArcGISRuntime 100.3]
void FeatureTable::setDisplayName(const QString &displayName)
Sets the table's display name to displayName.
This function was introduced in Esri::ArcGISRuntime 100.3.
See also displayName().
[override virtual, since Esri::ArcGISRuntime 100.1]
void FeatureTable::setPopupDefinition(Esri::ArcGISRuntime::PopupDefinition *popupDefinition)
Reimplements: PopupSource::setPopupDefinition(Esri::ArcGISRuntime::PopupDefinition *popupDefinition).
Sets the popup definition to popupDefinition.
This function was introduced in Esri::ArcGISRuntime 100.1.
See also popupDefinition() and PopupSource.
[override virtual, since Esri::ArcGISRuntime 100.1]
void FeatureTable::setPopupEnabled(bool popupEnabled)
Reimplements: PopupSource::setPopupEnabled(bool popupEnabled).
Sets whether the PopupSource is enabled to popupEnabled.
This function was introduced in Esri::ArcGISRuntime 100.1.
See also isPopupEnabled() and PopupSource.
Esri::ArcGISRuntime::SpatialReference FeatureTable::spatialReference() constReturns the spatial reference of the table.
A spatial reference defines how the coordinates of a feature's Geometry correspond to locations in the real world. For more information see the SpatialReference class or the Spatial references documentation.
QString FeatureTable::tableName() constReturns the name of the dataset.
[since Esri::ArcGISRuntime 200.2]
QFuture<void> FeatureTable::updateFeatureAsync(Esri::ArcGISRuntime::Feature *feature)
Updates a feature in the table.
If you update a feature that contains a Geometry, the geometry becomes simplified. This may change a single part geometry to a multipart geometry, or round X, Y, Z, and M coordinate values that are above the resolution set by the SpatialReference.
Updating a feature from a GeodatabaseFeatureTable in a stand-alone mobile geodatabase created with ArcGIS Pro is not supported when the table participates in a controller dataset, such as a utility network or parcel fabric. Use canUpdate(Esri::ArcGISRuntime::Feature*) to determine if this operation is allowed.
This method returns a QFuture for the asynchronous operation. Use future.then() to continue processing when the operation completes. Use future.onFailed() to handle exceptions of type ErrorException.
See Working with QFuture for further details.
This function was introduced in Esri::ArcGISRuntime 200.2.
See also FeatureServiceSessionType.
[since Esri::ArcGISRuntime 200.2]
QFuture<void> FeatureTable::updateFeaturesAsync(const QList<Esri::ArcGISRuntime::Feature *> &features)
Updates a collection of features in the table.
This method returns a QFuture for the asynchronous operation. Use future.then() to continue processing when the operation completes. Use future.onFailed() to handle exceptions of type ErrorException.
See Working with QFuture for further details.
This function was introduced in Esri::ArcGISRuntime 200.2.
See also FeatureServiceSessionType.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4