ArcGIS publishes GP service

Here is a brief introduction on how to use ArcGIS to publish GP services.

1. Tool introduction

The released ToolBox takes the interpolation function of the simulated monitoring site monitoring value as an example: the
Insert picture description here
tool operation effect is as follows:
Insert picture description here

2. Release GP tool

In the results of the Geoprocessing run window, right-click the model to share the GP service to the Server:
Insert picture description here
option settings

If the upload option is set, data can be uploaded:
Insert picture description here
if the uploads option is checked, data can be uploaded:
Insert picture description here
but the model input here is Feature Class, which is stored in the database, so it cannot be uploaded directly. If the input feature is SHP or raster, such as tiff file, you can upload the file. After the upload is completed, you will get an itemID number, record this ID number, and fill in the parameters as follows when submitting the parameters of the submitJob:

{ “itemID” : “xxxxxxxxxxxxx” }

Similar to:
Insert picture description here

In addition, set whether to publish the result as a service. If checked, it can be automatically published as a map service:
Insert picture description here
Set the output data location, the default is the site creation location:
Insert picture description here
You can add the location through the server manager background:
Insert picture description here
In addition, you need to fill in various parameter description interfaces. Then analyze and publish.
Insert picture description here
After the release is complete, the server will add a GP service and a map service for storing analysis results:
Insert picture description here

Three, test

Here, the test is performed by inputting a feature service published.
Insert picture description here
The incoming parameters are:

{"Url": "Service Address"}

If there are multiple input parameters, you can pass multiple URLs.

After running, you can check whether the status is successful

Guess you like

Origin blog.csdn.net/suntongxue100/article/details/112479847