Class GeoprocessingTask
GeoprocessingTask is used to run geoprocessing task that is published as a web service.
Inheritance
Namespace: Esri.ArcGISRuntime.Tasks.Geoprocessing
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class GeoprocessingTask
Remarks
GeoprocessingTask is the main component when running geoprocessing tasks. The task might be
published through ArcGIS Server or Local server (on the platforms that supports it) using either synchronous
execute or asynchronous submit execution type. When Geoprocessing
- Create Geoprocessing
Task using full URL to the target geoprocessing task endpoint. - Create Geoprocessing
Parameters providing corresponding GeoprocessingExecution Type -
Create needed Geoprocessing
Parameter s and add them to Inputs where key is the name of the parameter and value is created parameter. - Set environmental variables on Geoprocessing
Parameters if needed. - Create Geoprocessing
Job with CreateJob(Geoprocessing .Parameters) - Start listening for status and message changes using Message
Added event. -
Run targeted geoprocessing tool using Get
Result which returns GeoprocessingAsync() Result when finished. -
Handle returned values accordingly. Access output parameters through Outputs
dictionary where key is the name of the output parameter and the value is returned parameter. If used
geoprocessing service is configured to use result map service Map
Image might be created for you.Layer
Properties
Name | Description |
---|---|
Geoprocessing |
Gets the metadata of this geoprocessing task. |
Source | Gets the source URL that points to a task within an ArcGIS REST geoprocessing service. |
Methods
Name | Description |
---|---|
Create |
Initializes a new instance of the Geoprocessing |
Create |
Creates default parameters for a geoprocessing task. |
Create |
Returns a job that when started will run a geoprocessing task on the service. |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |