- URL:
- https://<rasteranalysistools-url>/MosaicImage
- Methods:
GETPOST- Version Introduced:
- 10.8.1
Description
The Mosaic operation can be used to append an existing image service to a hosted imagery layer referencing cloud raster format raster dataset. The input images must be within the extent of the target hosted imagery layer.
Request parameters
| Parameter | Details |
|---|---|
(Required) | Single or multiple imagery layers which will be mosaicked to the target imagery layer. Syntax: JSON object describes the input from raster. At least one type of input needs to be provided in the JSON object. If multiple input types are given in the same JSON dictionary, the Example: |
(Required) | Specifies the target raster. The target raster can be an imagery layer item, image service URL, or a cloud raster format (CRF) raster dataset path. The source raster dataset of the image service must be cloud raster dataset format as well. Example: |
(Optional) | Specifies the method that will be used to mosaic overlapping areas.
|
(Optional) | Specifies the method that will be used to choose which color map from the input rasters will be applied to the mosaic output.
|
(Optional) | All the pixels with the specified value will be set to NoData in the output raster dataset. |
(Optional) | Contains additional settings that affect task execution. This task has the following settings:
|
| The response format. The default format is Values: |
Example usage
The following is a sample request URL for the Mosaic operation:
https://organization.example.com/<context>/rest/services/System/RasterAnalysisTools/GPServer/MosaicImage/submitJob?inputRasters=[{"itemId":"bdf62717a5644fee8e4b9de45d86a74f"}]&targetRaster={"itemId":"3b629d9ffa664b8ca0d7e65da8301812"}&mosaicOperator=LAST&mosaicColormapMode=FIRST&noDataValue=null&f=pjsonJSON Response example
The response returns the output output parameter, which has properties for parameter name, data type, and value. The content of the value is the output image service URL.
{
"paramName": "outputRaster",
"dataType": "GPString",
"value": "https://<server url>/arcgis/rest/services/Hosted/Hosted_mosaic_dem_image/ImageServer"
}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:
https://<raster analysis tools url>/MosaicImage/jobs/<jobId>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:
https://<raster analysis tools url>/MosaicImage/jobs/<jobId>/results/outputRaster