- URL:
- https://<imageservice-url>/calculateVolume
- Methods:
GET
- Required Capability:
- Image
- Version Introduced:
- 10.7
Description
This operation is supported at 10.7 and later.
The calculate
operation is performed on an image service resource that uses ArcObjects11 or ArcObjectsRasterRendering as the service provider. Since this operation is designed to run with an elevation image service, the “esriImageServiceDataTypeElevation” image service data type is required.
This operation performs a volumetric calculation on the elevation data. Results are in square meters for area calculation and in cubic meters for volume calculation by default. If the elevation image service does not have vertical spatial reference and the vertical z-unit is not meters, additional unit conversion is needed when interpreting the results.
The result of this operation includes a 2D area of the base surface, volumes that needs to be cut or filled toward the target base surface, and the statistics of elevation values on the given geometry's vertices.
You can provide arguments to the calculate
operation as query parameters defined in the parameters table below.
Request parameters
Parameter | Details |
---|---|
|
The response format. The default response format is Values: |
(Required) | A geometry that defines the area of interest. The location can be an envelope or a polygon. The structure of the geometry is the same as the structure of the JSON geometry objects. |
(Required) | The type of geometry specified by the geometry parameter. The geometry type can be an envelope or a polygon. Value: |
| Specifies the mosaic rule for how individual image items in the requested image service will be mosaicked. This determines the elevation values on overlapped elevation image pixels. Refer to the mosaic rule JSON objects for the syntax and examples. |
| The image items that are visible at the specified pixel size will be used for volume calculation. If The structure of the Syntax:
Examples:
|
| Description: Surface type of the base elevation plane:
|
| Description: If the |
Example usage
Calculate cut and fill volumes with a 2D polygon at a certain target base surface elevation.
https
JSON Response syntax
{"results": [{
"area": <area_ring_1>,
"cut": <cut_ring_1>,
"fill": <fill_ring_1>,
"minz": <minz_ring_1>,
"maxz": <maxz_ring_1>,
"meanz": <meanz_ring_1>
},{
"area": <area_ring_2>,
"cut": <cut_ring_2>,
"fill": <fill_ring_2>,
"minz": <minz_ring_2>,
"maxz": <maxz_ring_2>,
"meanz": <meanz_ring_2>
}
…
]}
JSON Response example
{"results": [{
"area": 0.8875979507386519,
"cut": 0,
"fill": -289.7427368055556,
"minz": 73,
"maxz": 247.8786334562855,
"meanz": 184.59350068111561
}]}