OgcFeatureCollectionTable Class
An OGC API - Features feature-collection table. More...
Header: | #include <OgcFeatureCollectionTable> |
Since: | Esri::ArcGISRuntime 100.9 |
Inherits: | Esri::ArcGISRuntime::FeatureTable |
This class was introduced in Esri::ArcGISRuntime 100.9.
Public Functions
OgcFeatureCollectionTable(const QUrl &url, const QString &collectionId, QObject *parent = nullptr) | |
OgcFeatureCollectionTable(Esri::ArcGISRuntime::OgcFeatureCollectionInfo *featureCollectionInfo, QObject *parent = nullptr) | |
virtual | ~OgcFeatureCollectionTable() override |
Esri::ArcGISRuntime::OgcFeatureCollectionInfo * | featureCollectionInfo() const |
Esri::ArcGISRuntime::FeatureRequestMode | featureRequestMode() const |
Esri::ArcGISRuntime::TaskWatcher | populateFromService(const Esri::ArcGISRuntime::QueryParameters ¶meters, bool clearCache, const QStringList &outfields) |
void | setFeatureRequestMode(Esri::ArcGISRuntime::FeatureRequestMode featureRequestMode) |
QUrl | url() const |
Signals
void | populateFromServiceCompleted(QUuid taskId, Esri::ArcGISRuntime::FeatureQueryResult *featureQueryResult) |
Detailed Description
The OGC API - Features API provides building blocks for manipulating features on the Web. For more information about the OGC API - Features specification, see https://www.opengis.net/doc/IS/ogcapi-features-1/1.0.
Member Function Documentation
OgcFeatureCollectionTable::OgcFeatureCollectionTable(const QUrl &url, const QString &collectionId, QObject *parent = nullptr)
Creates a new OGC API - Features feature-collection table.
- url - The URL of the OGC API - Features service landing page that contains the feature collection.
- collectionId - The unique identifier for the collection from the service.
- parent - The optional parent QObject.
OgcFeatureCollectionTable::OgcFeatureCollectionTable(Esri::ArcGISRuntime::OgcFeatureCollectionInfo *featureCollectionInfo, QObject *parent = nullptr)
Creates a new OGC API - Features feature-collection table.
- featureCollectionInfo - An OgcFeatureCollectionInfo.
- parent - The optional parent QObject.
[signal]
void OgcFeatureCollectionTable::populateFromServiceCompleted(QUuid taskId, Esri::ArcGISRuntime::FeatureQueryResult *featureQueryResult)
Signal emitted when the populateFromService operation completes.
- taskId - The task ID of the asynchronous operation.
- featureQueryResult - The result of the populate operation.
See also Returned QObjects Parenting.
[override virtual]
OgcFeatureCollectionTable::~OgcFeatureCollectionTable()
Destructor.
Esri::ArcGISRuntime::OgcFeatureCollectionInfo *OgcFeatureCollectionTable::featureCollectionInfo() const
Returns the OGC API - Features feature-collection metadata, which includes id, title, and description.
Esri::ArcGISRuntime::FeatureRequestMode OgcFeatureCollectionTable::featureRequestMode() const
Returns the mode defining when features are requested from the service.
See also setFeatureRequestMode().
Esri::ArcGISRuntime::TaskWatcher OgcFeatureCollectionTable::populateFromService(const Esri::ArcGISRuntime::QueryParameters ¶meters, bool clearCache, const QStringList &outfields)
Populates the OGC API - Features feature-collection table with the results of a query.
- parameters - Parameters that define how features are returned from the service.
- clearCache - If
true
, clears existing table data before populating it with features returned from the service. - outfields - A QStringList.
Use the default (empty) QueryParameters to get all features from the service. Specifying nullptr
or an empty list for outfields will result in the default set of outfields being used. Spatial queries (those that specify geometries) must use the Intersects spatial relationship.
Returns a string representing the task ID of the asynchronous task.
void OgcFeatureCollectionTable::setFeatureRequestMode(Esri::ArcGISRuntime::FeatureRequestMode featureRequestMode)
Sets the featureRequestMode to featureRequestMode.
Note: Your code must set this to FeatureRequestMode::ManualCache before the table is loaded. FeatureRequestMode::ManualCache is the only mode supported in the current release. The default value of FeatureRequestMode::OnInteractionCache will be supported in a future release and will continue to be the default value.
See also featureRequestMode.
QUrl OgcFeatureCollectionTable::url() const
Returns the URL of the OGC API - Features service landing page.