Geoprocessing Features
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 com.arcgismaps.mapping.GeoElement.attributes collection. A record (or a row) doesn't contain com.arcgismaps.data.Feature and information is stored in attributes on com.arcgismaps.mapping.GeoElement.attributes collection.
When GeoprocessingFeatures.features are returned as an output parameter the returned results are provided as a read-only list of com.arcgismaps.data.Feature using GeoprocessingFeatureSet. These features can be visualized on a map using temporary com.arcgismaps.mapping.view.Graphic on a com.arcgismaps.mapping.view.GraphicsOverlay or using com.arcgismaps.data.FeatureCollectionTable on a com.arcgismaps.mapping.layers.FeatureCollectionLayer. If used geoprocessing service is configured to use a result map server, then com.arcgismaps.tasks.geoprocessing.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 com.arcgismaps.data.FeatureQueryResult that was returned from the com.arcgismaps.data.FeatureTable. If there is a need to create a new set a features or records, com.arcgismaps.data.FeatureCollectionTable can be used.
Since
200.1.0
See also
()
Constructors
Create a geoprocessing features parameter.
Create a geoprocessing features parameter with an input com.arcgismaps.data.FeatureSet.
Create a geoprocessing features parameter with a URL for the service to retrieve a feature set for input.
Properties
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.
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.
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
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.