Users can create and share geoprocessing tools in the GIS. The arcgis.geoprocessing module lets you import geoprocessing toolboxes as native Python modules. You can call the functions available in the imported module to invoke these tools. The module also provides simple types that can be used as parameters for these tools along with native Python types.
Imports geoprocessing toolboxes as native Python modules. You can call the functions available in the imported module to invoke these tools.
Parameter
Description
url_or_item
location of toolbox, can be a geoprocessing server url or Item of type: Geoprocessing Service
gis
Optional the GIS
used for running the tool. active_gis
is used if not specified
verbose
optional bool, set to True to print the generated module
Returns module with functions for the various tools in the toolbox
A data object containing a data source, used as input/output by some Geoprocessing tools
Parameter
Description
url
optional string, URL to the location of the data file.
item_id
optional string, The id of the uploaded file returned as a result of the upload operation.
portal_item
optional Item
. A data type item used for GP tool.
Downloads the data to the specified folder or a temporary folder if a folder isnât provided
Creates an instance of this class from its dict representation.
Creates a data file from a url.
Converts an instance of this class to its dict representation.
A data object containing a linear distance, used as input to some Geoprocessing tools
Parameter
Description
distance
required number, the value of the linear distance.
units
required string, unit type of the linear distance, such as âMetersâ, âMilesâ, âKilometersâ, âInchesâ, âPointsâ, âFeetâ, âYardsâ, âNauticalMilesâ, âMillimetersâ, âCentimetersâ, âDecimalDegreesâ, âDecimetersâ
Creates an instance of this class from its dict representation.
Creates a linear unit from a string like â5 milesâ.
Converts an instance of this class to its dict representation.
A data object containing a raster data source, used as input/output by some Geoprocessing tools
Parameter
Description
url
optional string, URL to the location of the raster data file.
item_id
optional string, The id of the uploaded file returned as a result of the upload operation.
format
optional string, Specifies the format of the raster data, such as âjpgâ, âtifâ, etc.
Creates an instance of this class from its dict representation.
Converts an instance of this class to its dict representation.
A geoprocessing service can contain one or more tools that use input data from a client application, process it, and return output in the form of features, maps, reports, files, or services. These tools are first authored and run in ArcGIS Pro or ArcGIS Desktop, typically as a custom model or script tools, before being shared to an ArcGIS Server.
Returns the Serviceâs Properties
Dictionary
Reloads the Service Information
returns the GP Tasks
The GP Task resource represents a single task in a geoprocessing service published using ArcGIS Server. It provides basic information about the task including its name and display name. It also provides detailed information about the various input and output parameters exposed by the task.
Returns a Map of Parameters with Choice Lists.
Dictionary
Gets a parameterâs default value.
object
Returns the URL to the documentation for the GP Task.
string
Name of the geoprocessing tasks
string
Returns the Serviceâs Properties
Dictionary
Provides access to additional information about the GP Service.
the serviceâs item information
the serviceâs metadata
the serviceâs thumbnail
Represents a Single Geoprocessing Job. The GPJob class allows for the asynchronous operation of any geoprocessing task. To request a GPJob task, the code must be called with future=True or else the operation will occur synchronously. This class is not intended for users to call directly.
Parameter
Description
future
Required Future object. The async object created by the geoprocessing (GP) task.
gptool
Required Layer. The Geoprocessing Service
jobid
Required String. The unique ID of the GP Job.
task_url
Required String. The URL to the GPTask
.
gis
Required GIS
. The GIS connection object
notify
Optional Boolean. When set to True, a message will inform the user that the geoprocessing task has completed. The default is False.
Attempt to cancel the call. If the call is currently being executed or finished running and cannot be cancelled then the method will return False, otherwise the call will be cancelled and the method will return True.
Boolean
Return True if the call was successfully cancelled.
Boolean
Return True if the call was successfully cancelled or finished running.
Boolean
Get the amount of time that passed while the GPJob
ran.
Get the serviceâs messages
List
Return the value returned by the call. If the call hasnât yet completed then this method will wait.
object
Return True if the call is currently being executed and cannot be cancelled.
Boolean
Get the GP status
String
Get the task name.
String
A collection of geoprocessing tools.
List of tools in this toolbox
returns the upload endpoint for the geoprocessing toolbox
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4