Skip To Content ArcGIS for Developers Sign In Dashboard

GeoprocessingFeatures Class

(Esri::ArcGISRuntime::GeoprocessingFeatures)

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

Header: #include <GeoprocessingFeatures>
Since: Esri::ArcGISRuntime 100.0
Inherits: GeoprocessingParameter and RemoteResource

Public Functions

GeoprocessingFeatures(QObject *parent = nullptr)
GeoprocessingFeatures(const QUrl &url, QObject *parent = nullptr)
GeoprocessingFeatures(const QUrl &url, Credential *credential, QObject *parent = nullptr)
GeoprocessingFeatures(FeatureSet *features, QObject *parent = nullptr)
~GeoprocessingFeatures()
bool canFetchOutputFeatures() const
FeatureSet *features() const
TaskWatcher fetchOutputFeatures()
void setFeatures(FeatureSet *featureSet)
void setUrl(const QUrl &url)

Reimplemented Public Functions

virtual Credential *credential() const
virtual RequestConfiguration requestConfiguration() const
virtual void setRequestConfiguration(const RequestConfiguration &requestConfiguration)
virtual QUrl url() const

Signals

void fetchOutputFeaturesCompleted(QUuid taskId)

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 public variable inherited from QObject
  • 10 static public members inherited from QObject
  • 9 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

A features (or records) input or output parameter.

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

GeoprocessingFeatures::GeoprocessingFeatures(QObject *parent = nullptr)

Constructor that accepts an optional parent object.

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.

GeoprocessingFeatures::GeoprocessingFeatures(const QUrl &url, Credential *credential, QObject *parent = nullptr)

Constructor that accepts an initial URL to a data file (url), a credential and an optional parent object.

This function was introduced in Esri::ArcGISRuntime 100.1.

GeoprocessingFeatures::GeoprocessingFeatures(FeatureSet *features, QObject *parent = nullptr)

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

GeoprocessingFeatures::~GeoprocessingFeatures()

Destructor.

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.

[virtual] Credential *GeoprocessingFeatures::credential() const

Reimplemented from RemoteResource::credential().

Returns the security credential used to access the features.

Note: Only applicable if using an online resource that is secured.

This function was introduced in Esri::ArcGISRuntime 100.1.

FeatureSet *GeoprocessingFeatures::features() const

Returns the FeatureSet that is the source of the features.

See also setFeatures().

TaskWatcher GeoprocessingFeatures::fetchOutputFeatures()

Creates a task to fetch features.

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

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

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

[virtual] RequestConfiguration GeoprocessingFeatures::requestConfiguration() const

Reimplemented from RemoteResource::requestConfiguration().

Returns the RequestConfiguration in use by this object.

This function was introduced in Esri::ArcGISRuntime 100.1.

See also setRequestConfiguration().

void GeoprocessingFeatures::setFeatures(FeatureSet *featureSet)

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

See also features().

[virtual] void GeoprocessingFeatures::setRequestConfiguration(const RequestConfiguration &requestConfiguration)

Reimplemented from RemoteResource::setRequestConfiguration().

Sets configuration parameters used for network requests sent by this object to requestConfiguration.

This function was introduced in Esri::ArcGISRuntime 100.1.

See also requestConfiguration().

void GeoprocessingFeatures::setUrl(const QUrl &url)

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

See also url().

[virtual] QUrl GeoprocessingFeatures::url() const

Reimplemented from RemoteResource::url().

Returns the URL of the source of the features.

See also setUrl().


Feedback on this topic?