GeoprocessingTask is used to run geoprocessing task that is published as a web service. 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 GeoprocessingParameters is created it is important to match GeoprocessingExecutionType to the value on the service.



See also




Link copied to clipboard
constructor(url: String)

Create a geoprocessing task from a URL to a task within an ArcGIS REST geoprocessing service.


Link copied to clipboard

The metadata of this geoprocessing task.

Link copied to clipboard
val url: String

The URL of this geoprocessing task.

Inherited properties

Link copied to clipboard
open override val loadStatus: StateFlow<LoadStatus>

The load status.


Link copied to clipboard

Creates default parameters for a geoprocessing task. This will populate the parameters with default values for all of the input parameters defined by the service. If the service defines a default value for a parameter, this will be used. If no default value is defined for a parameter, it will be given an appropriate default for its type: boolean parameters false, string parameters an empty string, numerical parameters 0. The correct execution type for this task will also be set.

Link copied to clipboard

Returns a job that when started will run a geoprocessing job on the server.

Inherited functions

Link copied to clipboard
open override fun cancelLoad()

Cancels loading metadata for the Loadable object.

Link copied to clipboard
open suspend override fun load(): Result<Unit>

Loads the metadata for the object.

Link copied to clipboard
open suspend override fun retryLoad(): Result<Unit>

Loads or retries loading metadata for the object.