Compute cut and fill volumes

Computes the volumes of earth to remove (cut) and to add (fill) to level an area to a target elevation, from a digital elevation model (DEM).

Required role: ORG_VIEWER, and the current user must have the VIEW permission on the data source. The organization path parameter must be the organization of the access token.

Digital elevation model (DEM)

The data source must be a raster data source with one band of elevations (a DEM), and READY (400 otherwise). Elevations are in the units of the DEM, usually meters.

Fields

FieldRequiredDescription
targetElevationYesThe elevation to level the area to, in the units of the DEM
cutlineYesThe area: geometry, a GeoJSON Polygon, and its crs (default EPSG:4326), such as { "type": "name", "properties": { "name": "EPSG:3857" } } or { "type": "EPSG", "properties": { "code": 3857 } }

The polygon must be completely inside the DEM, and its pixels must all have a value: otherwise the request returns 400, with the extent of the DEM in the message.

Response

FieldContent
cutVolume above targetElevation, to remove
fillVolume below targetElevation, to add
netfill - cut: positive when earth must be added overall

Volumes are in cubic meters when the elevations are in meters: each pixel whose center is in the polygon counts for its area on the ground (in square meters) times its difference with targetElevation.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Id of your organization (must match the access token)

string
required
length ≥ 1

Id of the raster data source

Body Params

The target elevation and the polygon of the area.

cutline
object
required

The area: a GeoJSON Polygon in geometry, and its crs (default EPSG:4326). It must be completely inside the DEM.

float
required

The elevation to level the area to, in the units of the DEM (usually meters)

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json