GeoprocessingFeatures

The geoprocessing features used as input or output parameters. Corresponds to GPRecordSet and GPFeatureRecordSetLayer parameter types on the service.

A feature contains a GeoprocessingFeatures.features and may contains extra attributes on GeoElement.attributes collection. A record (or a row) doesn't contain Feature and information is stored in attributes on GeoElement.attributes collection.

When GeoprocessingFeatures.features are returned as an output parameter the returned results are provided as a read-only list of Feature using GeoprocessingFeatureSet. These features can be visualized on a map using temporary Graphic on a GraphicsOverlay or using FeatureCollectionTable on a FeatureCollectionLayer. If used geoprocessing service 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 a features or records, FeatureCollectionTable can be used.

Since

200.1.0

See also

GeoprocessingFeatures.GeoprocessingFeatures

()

FeatureCollectionTable
FeatureQueryResult

Constructors

Link copied to clipboard
constructor()

Create a geoprocessing features parameter.

constructor(featureSet: FeatureSet)

Create a geoprocessing features parameter with an input FeatureSet.

constructor(url: String)

Create a geoprocessing features parameter with a URL for the service to retrieve a feature set for input.

Properties

Link copied to clipboard

Indicates if features can be fetched from the service of an output parameter. This property applies to output parameters. It indicates the parameter is an output parameter that can fetch features from the geoprocessing service. Depending on the type of the service the GeoprocessingFeatures.features may already be available. If features are not present then this property indicates that you can use GeoprocessingFeatures.fetchOutputFeatures() to request features and asynchronously update the GeoprocessingFeatures.features property.

Link copied to clipboard

The features that are sent to or returned from the geoprocessing service. For an input parameter, this contains features to be sent to the geoprocessing service. This property will be ignored if GeoprocessingFeatures.url is set. For an output parameter, this can contain features returned from a geoprocessing service depending on the service configuration. It can be null for services that have a map service, in which case calling GeoprocessingFeatures.fetchOutputFeatures() will retrieve the features from the service.

Link copied to clipboard
var url: String?

The input URL that will be sent to the geoprocessing service to retrieve features. The URL is for input parameters only. For output parameters this is empty. For input it must be a URL that is accessible to the geoprocessing service so it can retrieve the feature set. If this property is set, it will override the GeoprocessingFeatures.features property.

Functions

Link copied to clipboard

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 GeoprocessingFeatures.features is null. It is not necessary to call this if GeoprocessingFeatures.features is already populated.