GeoprocessingFeatures Class

  • GeoprocessingFeatures
  • class Esri::ArcGISRuntime::GeoprocessingFeatures

    A features (or records) input or output parameter. More...

    Header: #include <GeoprocessingFeatures.h>
    Since: Esri::ArcGISRuntime 100.0
    Inherits: Esri::ArcGISRuntime::GeoprocessingParameter

    Public Functions

    GeoprocessingFeatures(QObject *parent = nullptr)
    GeoprocessingFeatures(const QUrl &url, QObject *parent = nullptr)
    GeoprocessingFeatures(Esri::ArcGISRuntime::FeatureSet *features, QObject *parent = nullptr)
    virtual ~GeoprocessingFeatures() override
    bool canFetchOutputFeatures() const
    Esri::ArcGISRuntime::FeatureSet *features() const
    Esri::ArcGISRuntime::TaskWatcher fetchOutputFeatures()
    QFuture<void> fetchOutputFeaturesAsync()
    void setFeatures(Esri::ArcGISRuntime::FeatureSet *featureSet)
    void setUrl(const QUrl &url)
    QUrl url() const


    void fetchOutputFeaturesCompleted(const QUuid &taskId)

    Detailed Description

    Corresponds to GPRecordSet and GPFeatureRecordSetLayer parameter types on the service.

    When Features are returned as an output parameter, the returned features are provided in a GeoprocessingFeatureSet. These features can be visualized on a map using a temporary Graphic on a GraphicsOverlay or using a FeatureCollectionTable on a FeatureCollectionLayer. If the geoprocessing service used is configured to use a result map server, then GeoprocessingResult::mapImageLayer was populated and it can be used to visualize the results using the symbology predefined by the service.

    When providing GeoprocessingFeatures as an input to the geoprocessing task, features can be provided directly from the FeatureQueryResult that was returned from the FeatureTable. If there is a need to create a new set of features or records, FeatureCollectionTable can be used.

    Note: A feature contains a geometry and some number of attributes. A record (or a row) is a feature that doesn't contain a geometry, only attributes.

    Member Function Documentation

    [explicit] GeoprocessingFeatures::GeoprocessingFeatures(QObject *parent = nullptr)

    Constructor that accepts an optional parent object.

    [explicit] GeoprocessingFeatures::GeoprocessingFeatures(const QUrl &url, QObject *parent = nullptr)

    Constructor that accepts a URL (url) to a feature set for input, and an optional parent object.

    [explicit] GeoprocessingFeatures::GeoprocessingFeatures(Esri::ArcGISRuntime::FeatureSet *features, QObject *parent = nullptr)

    Constructor that accepts a FeatureSet (features) and an optional parent object.

    [override virtual] GeoprocessingFeatures::~GeoprocessingFeatures()


    bool GeoprocessingFeatures::canFetchOutputFeatures() const

    Returns whether features can be fetched from the service of an output parameter.

    This property applies to output parameters. It indicates that the parameter is an output parameter that can fetch features from the geoprocessing service. Depending on the type of the service, the features may already be available.

    If features are not present then this property indicates that you can use fetchOutputFeatures to request features, asynchronously updating the features property.

    Esri::ArcGISRuntime::FeatureSet *GeoprocessingFeatures::features() const

    Returns the FeatureSet that is the source of the features.

    See also setFeatures().

    Esri::ArcGISRuntime::TaskWatcher GeoprocessingFeatures::fetchOutputFeatures()

    Creates a task to fetch features.

    When the task completes, the features are available on the features property.

    [since Esri::ArcGISRuntime 200.2] QFuture<void> GeoprocessingFeatures::fetchOutputFeaturesAsync()

    Starts a request to fetch output features from the service.

    If the parameter is an output of a geoprocessing service this can be used to fetch features if features is nullptr. It is not necessary to call this if features is already populated.

    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.

    [signal] void GeoprocessingFeatures::fetchOutputFeaturesCompleted(const QUuid &taskId)

    The signal emitted when the fetchOutputFeatures task with the ID taskId completes.

    void GeoprocessingFeatures::setFeatures(Esri::ArcGISRuntime::FeatureSet *featureSet)

    Sets the FeatureSet that is the source of the features to featureSet.

    See also features().

    void GeoprocessingFeatures::setUrl(const QUrl &url)

    Sets the URL of the source of the features to url.

    See also url().

    QUrl GeoprocessingFeatures::url() const

    Returns the URL of the source of the features.

    See also setUrl().

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