WfsFeatureTable QML Type

  • Esri.ArcGISRuntime
  • WfsFeatureTable
  • A table in an OGC Web Feature Service. More...

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

    FeatureTable

    Properties

    Signals

    Methods

    Detailed Description

    A WfsFeatureTable may be created by the following groups of properties:

    This QML type supports the following default properties. A default property may be declared inside another declared object without being assigned explicitly to a property.

    See also Cancelable, Loadable, and RemoteResource.

    Property Documentation

    axisOrder : Enums.OgcAxisOrder

    Returns the axis order, which defines how coordinates are interpreted.

    Some WFS services return coordinates in (x,y) order, while others use (y,x). Setting this property to OgcAxisOrder::Swap results in all coordinates in geometries being swapped from what was sent by the server. The axis order can be changed on a loaded table, but that change will only affect future calls to WfsFeatureTable::populateFromService. Features that are already in the table will not be modified.

    The default value is OgcAxisOrderAuto. In this mode, the results are optimized using heuristics from popular WFS Servers.

    See also Enums.OgcAxisOrder.


    credential : Credential

    The security credential used to access the remote resource.

    This is only applicable if the service is secured.


    featureRequestMode : Enums.FeatureRequestMode

    Returns the FeatureRequestMode of the WfsFeatureTable.

    Note: at the current release, WfsFeatureTable only supports Enums.FeatureRequestModeManualCache mode, but defaults to Enums.FeatureRequestModeOnInteractionCache mode. Set the FeatureRequestMode to Enums.FeatureRequestModeManualCache before the table is loaded.

    See also Enums.FeatureRequestMode.


    filterAxisOrder : Enums.OgcAxisOrder

    Returns the axis order of the filter, which determines how geometry coordinates are ordered when sent to the server as part of spatial queries (those that specify a geometry).

    Some WFS services expect coordinates to be sent in (X,Y) order, while others use (Y,X). Use Enums.OgcAxisOrderSwap {Enums.OgcAxisOrder}{Enums.OgcAxisOrderSwap}to send coordinates in (Y,X) order. Use l {Enums.OgcAxisOrder}{Enums.OgcAxisOrderNoSwap} to send coordinates in (X,Y) order.

    Defaults to Enums.OgcAxisOrderAuto.

    See also Enums.OgcAxisOrder.


    layerInfo : WfsLayerInfo

    The WFS layer metadata, which includes name and description.

    This property may not be changed after the feature table is loaded.


    [read-only] populateFromServiceResult : FeatureQueryResult

    Returns the result from either the populateFromService or populateFromServiceWithXml methods (read-only).


    [read-only] populateFromServiceStatus : Enums.TaskStatus

    Returns the status of the latest asynchronous task to populate from the service (read-only).

    Note that this is the same status for both populateFromService and populateFromServiceWithXml methods.

    See also Enums.TaskStatus.


    [default] preferredSpatialReference : SpatialReference

    Returns the preferred spatial reference of the WFS feature table.

    If the preferred spatial reference isn't available from the service, the table will fail to load. Specify a preferred spatial reference that matches the map or scene's spatial reference to avoid automatic reprojection. The preferred spatial reference cannot be changed on a loaded table.


    [since Esri.ArcGISRuntime 100.13] requestConfiguration : RequestConfiguration

    The configuration parameters used for network requests sent by this object.

    This property was introduced in Esri.ArcGISRuntime 100.13.


    tableName : string

    The table name associated with the WFS feature table.

    This property must be used in conjunction with the url property in order to initialize.

    This property may not be changed after the feature table is loaded.

    Note: this property overloads the WfsFeatureTable::tableName property to make it writeable.


    url : url

    The URL associated with the WFS feature table.

    This property may not be changed after the feature table is loaded.

    This property must be used in conjunction with the tableName property in order to initialize.


    Signal Documentation

    axisOrderChanged()

    Emitted when the axisOrder property changes.

    Note: The corresponding handler is onAxisOrderChanged.


    [since Esri.ArcGISRuntime 100.13] credentialChanged()

    Emitted when the credential property changes.

    Note: The corresponding handler is onCredentialChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.13.


    featureRequestModeChanged()

    Emitted when the featureRequestMode property changes.

    Note: The corresponding handler is onFeatureRequestModeChanged.


    filterAxisOrderChanged()

    Emitted when the filterAxisOrder property changes.

    Note: The corresponding handler is onFilterAxisOrderChanged.


    layerInfoChanged()

    Emitted when the layerInfo property changes.

    Note: The corresponding handler is onLayerInfoChanged.


    populateFromServiceStatusChanged()

    Emitted when the populateFromServiceStatus property changes.

    Note: The corresponding handler is onPopulateFromServiceStatusChanged.


    portalItemChanged()

    Emitted when the portalItem property changes.

    Note: The corresponding handler is onPortalItemChanged.


    preferredSpatialReferenceChanged()

    Emitted when the preferredSpatialReference property changes.

    Note: The corresponding handler is onPreferredSpatialReferenceChanged.


    [since Esri.ArcGISRuntime 100.13] requestConfigurationChanged()

    Emitted when the requestConfiguration property changes.

    Note: The corresponding handler is onRequestConfigurationChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.13.


    tableNameChanged()

    Emitted when the tableName property changes.

    Note: The corresponding handler is onTableNameChanged.


    urlChanged()

    Emitted when the url property changes.

    Note: The corresponding handler is onUrlChanged.


    Method Documentation

    string populateFromService(QueryParameters parameters, bool clearCache, list<string> outfields)

    Populate the table using a query.

    Specifying an empty QueryParameters for parameters will result in requesting all features. Specifying an empty list for outfields will result in the default set of outfields being used. WFS is only compatible with a subset of possible queries defined by QueryParameters. The where clause only works when the table is backed by a service powered by GeoServer. Spatial queries (those that specify geometries) must use the Intersects spatial relationship.

    If clearCache is true, the existing table data is cleared before populating with the query result.

    This method uses an asynchronous task that cannot be started if it is already running from a previous call to populateFromService or populateFromServiceWithXml. You should check that the populateFromServiceStatus property is not Enums.TaskStatusInProgress before calling this method.

    After the task starts, you may use the signal populateFromServiceStatusChanged to monitor task status.

    Returns a task ID that can be used to cancel the populateFromService task.

    See also Enums.TaskStatus and Cancelable.


    string populateFromServiceWithXml(string xmlRequest, bool clearCache)

    Populate the table using the XML query xmlRequest.

    The XML query must be made against the same feature type represented by the WFS feature table. The schema of the query result must match or be a subset of the schema of the table. The XML query string must be an XML-encoded GetFeature request.

    If clearCache is true, the existing table data is cleared before populating with the query result.

    This method uses an asynchronous task that cannot be started if it is already running from a previous call to populateFromService or populateFromServiceWithXml. You should check that the populateFromServiceStatus property is not Enums.TaskStatusInProgress before calling this method.

    After the task starts, you may use the signal populateFromServiceStatusChanged to monitor task status.

    Returns a task ID that can be used to cancel the populateFromService task.

    See also Enums.TaskStatus and Cancelable.


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