- URL:
- https://<rasteranalysistools-url>/DownloadRaster
- Methods:
GET
- Version Introduced:
- 10.9
Description
The Download
task is used to download an image or partial image at a designated resolution. The input image service must be configured to allow pixel data download.
Request parameters
Parameter | Details |
---|---|
(Required) | The input image, designated as a Portal Item ID, Image Service URL, cloud raster dataset, or shared raster dataset. At least one type of input must be provided in the JSON object. If multiple input types are available in the same JSON dictionary, the itemId has priority. The service tool supports downloading from multiple imagery layers in one request. Syntax: JSON object describes the input from raster.
|
(Required) | The JSON geometry object used to clip the input image. The clipping geometry object can contain the shape description, extent, and clip type. Syntax: A JSON object supports three case sensitive keys: Example:
|
| Contains settings that affect task execution and results. This task has the following settings:
Example:
|
|
The response format. The default response format is html. Values: |
Response
When you submit a request, the task assigns a unique job ID for the transaction.
Syntax:
{ "jobId": "<unique job identifier>", "jobStatus": "<job status>" }
After the initial request is submitted, you can use the job
to periodically check the status of the job and messages, as described in Check job status. Once the job has successfully completed, use the job
to retrieve the results. To track the status, you can make a request of the following form:
http://<RasterUtilities service url>/DownloadRaster/jobs/<jobId>
Access results
When the status of the job request is esri
, you can access the results of the analysis by making a request of the following form:
http://<raster utilities url>/DownloadRaster/jobs/<jobId>/results/outputRaster?token=<your token>
Parameter | Description |
---|---|
| The output raster download link. Example:
The result has properties for parameter name, data type, and value. The content of the value is always the output raster dataset’s itemId and image service URL.
|