- URL:
- https://<rasteranalysistools-url>/BuildFootprints
- Methods:
GETPOST- Version Introduced:
- 10.7
Description
The Build operation computes the extent of every raster in an existing image collection. This operation is used when you have added or removed raster datasets from an image collection and want to recompute the footprints.
Request parameters
| Parameter | Details |
|---|---|
(Required) | The output image collection (mosaic dataset) name or URL. The image service must exist before calling this service. Syntax: JSON object supports three keys: Example: |
(Required) | Specifies the method used to refine the footprints. The Values: |
(Optional) | Exclude pixels with values outside this range. |
(Optional) | Defines additional optional settings that affect task execution. These settings are defined in the Context Settings section below. |
| The response format. The default format is Values: |
Context settings
| Setting | Description |
|---|---|
| The number of processes across which a tool will spread its operation. |
| Exclude pixels with a value less than this number. |
| Exclude pixels with a value greater than this number. |
| Choose between 4 and 10,000. More vertices will improve accuracy but can extend processing time. A value of -1 will calculate all vertices. More vertices will increase accuracy but also the processing time. |
| Clip the footprint by this distance. This can eliminate artifacts from using lossy compression, which causes the edges of the image to overlap into NoData areas. Shrinking of the polygon is used to counteract effects of lossy compression, which causes edges of the image to overlap into NoData areas. |
| Use this parameter when using raster datasets that have been tiled and are adjacent (line up along the seams with little to no overlap). Default is False. |
| Adjust the footprints of overviews. Default is True. |
| Update the boundary of the mosaic dataset if you have added or removed imagery that changes the extent. Default is True. |
| Set the resampled extent (in columns and rows) for the raster when building footprints. Greater image resolution provides more detail in the raster dataset but increases the processing time. A value of -1 will compute the footprint at the original resolution. |
| Avoid small holes in your imagery when using pixel values to create a mask. For example, your imagery may have a range of values from 0 to 255, and to mask clouds, you`ve excluded values from 245 to 255, which may cause other, noncloud pixels to be masked as well. If those areas are smaller than the number of pixels specified here, they will not be masked out. |
| Reduce the number of vertices in the footprint to improve performance.
|
| Snap the footprint to the sheet edge if it is within this tolerance. Units are the same as those in the mosaic dataset coordinate system. This is used when maintain_edges is set to MAINTAIN_EDGES. By default, the value is empty for which the tolerance is computed based on the pixel size corresponding to the requested resampled raster. A value of -1 will compute the tolerance using the average pixel size of the mosaic dataset. |
| Define the thinness of slivers on a scale from 0 to 1.0, where 1.0 represents a circle and 0.0 represents a polygon that approaches a straight line. Polygons that are below both the max_sliver_size and min_thinness_ratio will be removed from the footprint. |
| Define the thinness of slivers on a scale from 0 to 1.0, where 1.0 represents a circle and 0.0 represents a polygon that approaches a straight line. Polygons that are below both the max_sliver_size and min_thinness_ratio will be removed from the footprint. |
Example usage
The following is a sample request URL for the Build operation:
https://organization.example.com/<context>/rest/services/System/RasterAnalysisTools/GPServer/BuildFootprints/submitJob?imageCollection={"itemId":"51f2e556092a4e098b5d05b4b0ad94e7"}&computationMethod=RADIOMETRY&context= {"method":"RADIOMETRY","minValue":1,"maxValue":null,"shrinkDistance":0,"updateBoundary":true,"maintainEdge":false,"simplification":"None","numVertices":20,"minThinnessRatio":0.05,"maxSliverSize":20,"requestSize":2000,"minRegionSize":100,"skipDerivedImages":true}&f=pjsonResponse
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>/BuildFootprints/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>/BuildFootprints/jobs/<jobId>/results/outputCollectionJSON 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 always the output raster dataset’s itemId and image service URL.
{
"paramName": "outputCollection",
"dataType": "GPString",
"value": [{
"url": "https://<server url>/arcgis/rest/services/Hosted/Hosted_mosaic_image_collection/ImageServer"
}]
}