A table of features that typically represents real-world objects from an OGC Web Feature Service (WFS) dataset. More...
Member Function Documentation[explicit]
WfsFeatureTable::WfsFeatureTable(const Esri::ArcGISRuntime::WfsLayerInfo &layerInfo, QObject *parent = nullptr)
Creates a WFS feature table from WFS layer information.
Creates a WFS feature table from the URL of a WFS Service and a table name.
[override virtual noexcept]
WfsFeatureTable::~WfsFeatureTable()
Destructor
Esri::ArcGISRuntime::OgcAxisOrder WfsFeatureTable::axisOrder() constReturns the axis order, which defines how coordinates are interpreted (x,y or y,x).
Some WFS services return coordinates in (x,y) order, while others use (y,x) order. Setting this property to OgcAxisOrder::Swap results in all coordinates in geometries being swapped from what was sent by the server. Setting to OgcAxisOrder::NoSwap will cause coordinates to be interpreted as-is. The axis order can be changed on an already-loaded feature table, but the change will only affect future calls to populateFromServiceAsync(const Esri::ArcGISRuntime::QueryParameters&, bool, const QStringList&, QObject*). Features that are already in the table will not be modified/swapped.
The default value is OgcAxisOrder::Auto. In this mode, the results are optimized using heuristics from popular WFS Servers.
See also setAxisOrder().
Esri::ArcGISRuntime::FeatureRequestMode WfsFeatureTable::featureRequestMode() constReturns the mode defining when features are requested from the service.
You must set the feature request mode to FeatureRequestMode::ManualCache before attempting to populate the table using populateFromServiceAsync(const Esri::ArcGISRuntime::QueryParameters&, bool, const QStringList&, QObject*).
See also setFeatureRequestMode().
Esri::ArcGISRuntime::OgcAxisOrder WfsFeatureTable::filterAxisOrder() constReturns the filter axis order, which determines how coordinates are ordered when sent to the server as part of spatial queries.
Some WFS services expect coordinates to be sent in (x,y) order, while others use (y,x). Use OgcAxisOrder::Swap to send coordinates in (y,x) order and OGCAxisOrder.noSwap to use (x,y) order.
The default value is OgcAxisOrder::Auto. This indicates that the axis order will be based on the OGC standard specification, version, and spatial reference.
See also setFilterAxisOrder().
Esri::ArcGISRuntime::WfsLayerInfo WfsFeatureTable::layerInfo() constReturns the metadata describing the WFS layer, such as name and description.
[since Esri::ArcGISRuntime 200.2]
QFuture<Esri::ArcGISRuntime::FeatureQueryResult *> WfsFeatureTable::populateFromServiceAsync(const QString &xmlRequest, bool clearCache, QObject *parent = nullptr)
Populate the table using an XML query.
true
, clears existing table data before populating with the query result.The schema of the query result must match or be a subset of the schema of the table. The XML query must be made against the same feature type represented by the WFS feature table.
You must ensure that the featureRequestMode is set to FeatureRequestMode::ManualCache before attempting to populate 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.
[since Esri::ArcGISRuntime 200.2]
QFuture<Esri::ArcGISRuntime::FeatureQueryResult *> WfsFeatureTable::populateFromServiceAsync(const Esri::ArcGISRuntime::QueryParameters ¶meters, bool clearCache, const QStringList &outFields, QObject *parent = nullptr)
Populates the WFS feature table using the query parameters.
true
, the existing table data is cleared before it is populated with the query result.Use the default (empty) QueryParameters to get all features from the service. If you specify a nullptr
or an empty collection for outfields, then the default set of outfields are used.
WFS is compatible with a subset of possible queries defined by QueryParameters. The QueryParameters::whereClause only works when the table is backed by a service powered by a GeoServer. Spatial queries (those that specify geometries) must use the SpatialRelationship::Intersects spatial relationship.
You must ensure that the featureRequestMode is set to FeatureRequestMode::ManualCache before attempting to populate 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.
Esri::ArcGISRuntime::SpatialReference WfsFeatureTable::preferredSpatialReference() constReturns the preferred spatial reference for the WFS feature table.
If the service does not provide a preferred spatial reference, or you have not set it explicitly, then the table will fail to load. The preferred spatial reference cannot be changed once the table is loaded.
Set the preferred spatial reference to match the map or scene's spatial reference to avoid the automatic reprojection of features.
See also setPreferredSpatialReference().
void WfsFeatureTable::setAxisOrder(Esri::ArcGISRuntime::OgcAxisOrder axisOrder)Sets the axisOrder to axisOrder.
See also axisOrder.
void WfsFeatureTable::setFeatureRequestMode(Esri::ArcGISRuntime::FeatureRequestMode featureRequestMode)Sets the featureRequestMode to featureRequestMode.
See also featureRequestMode.
void WfsFeatureTable::setFilterAxisOrder(Esri::ArcGISRuntime::OgcAxisOrder filterAxisOrder)Sets the filterAxisOrder to filterAxisOrder.
See also filterAxisOrder.
void WfsFeatureTable::setPreferredSpatialReference(const Esri::ArcGISRuntime::SpatialReference &preferredSpatialReference)Sets the preferredSpatialReference to preferredSpatialReference.
See also preferredSpatialReference.
[override virtual]
QUrl WfsFeatureTable::url() const
Reimplements: RemoteResource::url() const.
Returns the URL of the WFS feature table.
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