Terrain and volumes from drones

Choose a DSM or DTM, generate contour lines, and practise computing volumes while checking the effects of the base surface, the grid and data gaps

Last updated:

A survey drone over a gravel stockpile in a materials yard, with staff standing well away
Conceptual illustration generated with AI

Computing a stockpile volume requires both a top surface and a base surface, so the result can change even with the same image set if a different base, pile boundary or computation cell size is chosen. Practice M04 focuses on recording these assumptions so they can be re-checked.

Prepare consistent elevation data

Read Coordinates and heights and Accuracy checking first. Prepare a DEM or point cloud with a known CRS, horizontal unit, Z unit and vertical reference. When comparing two epochs, check positional agreement using stable areas; do not use the changed stockpile area as a reference for alignment.

If you do not yet have real data, use the GSD, checkpoint and volume practice set to practise the table calculations first. The synthetic set checks the mathematics but does not represent camera quality, ground filtering or field accuracy.

DSM and DTM answer different surfaces

A DSM shows the observed surface, such as shrub tops, roofs and the stockpile surface, whereas a DTM is intended to represent the bare ground after separating objects above it. Classifying points as ground/non-ground is an estimate from the available data, not seeing through the canopy. If the images do not show the ground, the parts filled in from neighbouring areas must be labelled with their limitations.

The WebODM documentation explains the options for generating DSM/DTM and the effects of the ground classification filter, but option names and default values should be checked against the engine actually used before relying on them, especially when comparing older documentation with WebODM running ODX WebODM Digital Elevation Models

Gravel stockpile work usually needs the pile surface preserved. Using a DTM that filters out the pile as an above-ground object may remove the very thing you want to measure. Inspect cross-sections and the excluded point groups before choosing a product.

Volume is the difference between surface and base within the same boundary

Cross-section of a stockpile above two base levels, and grid cells in which the height difference multiplied by the cell area is summed to give the volume

For a square grid with side s metres, each cell that has both a surface and a base uses the formula ΔV = s² × (Z_surface − Z_base) , then all cells with complete data are summed. Where the surface is above the base the value is positive; below it, negative. For cut/fill work, report the positive and negative totals separately from the net total, because cancellation can hide the actual amount of work.

CloudCompare has a 2.5D Volume tool that compares a cloud with a constant-height plane or with another cloud by dividing it into a grid. The ground/ceil roles must be assigned clearly, and the area with data on both sides must be checked; incomplete cells may be omitted depending on the settings CloudCompare 2.5D Volume

The 2.5D method suits surfaces that can be represented by one height value per projection line, so it has limitations with cavities, overhangs and multiple overlapping layers. Dense data does not remove this assumption.

An example where the base and cell size change the answer

Suppose there are four cells, each 2 × 2 m, with heights above the original base of 1, 2, 3 and 2 m. The total volume is 4 × (1 + 2 + 3 + 2) = 32 m³ , covering an area of 16 m². If the base is raised by 0.25 m in every cell, the volume becomes 28 m³ , a decrease of 4 m³ or 12.5%, without any change to the top surface.

If the 3 m cell has no data and is left empty, the total from the remaining cells is 20 m³, covering only 12 m². Reporting “this pile is 20 m³” without stating the missing area misleads the recipient; state the computed value and the area that could not yet be assessed.

For continuous data, aggregating to larger cells can change how edges and mean heights are represented even if the total area stays similar. Try two or three grid steps with the same base and the same boundary, and do not conclude that the smallest grid is the most accurate, especially when points are sparse.

Computer practice: elevation, contours and volume

  1. Open the DEM in QGIS and check the CRS, Z unit and NoData. Use elevation-band colouring together with a hillshade to spot abnormal surfaces; do not judge levels from the hillshade alone.
  2. Find Contour and Slope in the Processing Toolbox, open the description of the chosen algorithm, and set the contour interval and slope unit clearly. Do not choose contours denser than the vertical confidence supported by evidence.
  3. Open the point cloud to be measured in CloudCompare and check the units and how the global shift is handled. If there are two datasets, keep their common positional reference and clip the work boundary so they can be compared exactly.
  4. Choose Tools → Volume → Compute 2.5D volume, set the surface as ceil and the base as ground, specify the Z projection axis, the grid step and the empty-cell handling method, then press Update to compute with those settings.
  5. Keep a report of the area used in the computation, the empty cells and the volume. Repeat when changing the base or the grid, one variable at a time, and record every run in a sensitivity table.
  6. Use the synthetic table in the practice set to check the formula with a spreadsheet program, and keep these practice results separate from results run on a real point cloud.

Interpolating empty cells adds estimated data; report the method and the size of the filled area. Large holes or areas outside the point group usually need more data rather than changing options so that the report shows no gaps CloudCompare Rasterize

Check plausibility before delivery

Make cross-sections through the middle of the pile and the base area, and check that the base does not cut through the pile or through parked vehicles. Compare the size roughly with the base area multiplied by the mean height. If the volume changes several-fold when the grid changes only slightly, check coverage and gap filling before trusting the total.

Subtracting two DEMs requires consistent grid alignment, pixel size, CRS, vertical reference and extent. In addition, both surfaces carry uncertainty, so small differences in every cell are not taken as real change. If a change-detection threshold is to be set, there must be evidence of the error of each epoch and an assumption about how the errors are correlated.

Deliverables and questions you must be able to answer

Deliver the DEM/point cloud used or a reference to it, the measurement boundary, the base type, a table comparing bases and grids, a map of missing cells, and a volume report with units. The recipient must be able to tell which parts were measured, which were estimated by filling, and what the positive/negative values mean.

You pass this practice when you can compute the example values of 32 and 28 m³, explain the effect of gaps, and choose DSM/DTM to match the question. Continue to Choosing maps to fit the mission to define deliverables according to the actual decision.

References

Documents checked 8 September 2569 (2026); base and volume figures are synthetic examples

Continue from this chapter

Stockpile mission practice with model answers with formulas, practice data and the evidence to submit

F22: Summing volume without hiding gaps and cut/fill

Define Δz as the current surface minus the target base, and I as the set of cells with complete data in both, within the same boundary. This synthetic model assumes a constant mean height within each cell and no overhangs.

Δzi = zsurface,i − zbase,i; Vnet = Σi∈I AiΔzi

Vcut = Σi∈I Aimax(Δzi,0); Vfill = Σi∈I Aimax(−Δzi,0)

Vnet = Vcut − Vfill; Avalid = nvalidApixel; slope_percent = 100Δz/Δs

Variable Meaning and units Range and source of values
z_surface,i, z_base,i Surface and base, m; input finite, from aligned grids with the same vertical datum
A_i, A_pixel Horizontal cell area, m²; input >0 from a projected CRS in m; the nA formula uses cells of equal area
I, n_valid Common mask and number of complete cells, cells; input Integer ≥0; NoData on either side is excluded
V_cut, V_fill Magnitude of volume above/below the base, m³; output ≥0; soil swell or shrinkage not yet included
V_net, A_valid Signed volume, m³, and assessed area, m²; output V_net may be positive or negative; A_valid ≥0
Δz, Δs Height difference and horizontal distance along a profile, m; input Δz finite; Δs>0; do not use slope distance in place of horizontal distance
slope_percent Signed gradient, %; output Reversing the profile direction reverses the sign

Cells of 4 square metres each with height differences of 1, 2, minus 1 and NoData

Image description: the three complete cells give volumes of +4, +8 and −4 m³; the fourth cell has no data, so it is outside the total and the missing area of 4 m² must be shown separately

Worked example and limitations

A synthetic set of four cells, each 2×2=4 m², with Δz=[1,2,−1,NoData] m gives cut=4×(1+2)=12 m³, fill=4×1=4 m³, net=12−4=8 m³ ; assessed area=3×4=12 m² out of a 16 m² boundary, so this is not the volume of the whole boundary. Another profile rising 2 m over a horizontal distance of 10 m gives 20% , not 20°

QGIS 3.44 has options for volume above/below the base and for adding or subtracting the part below the base in Raster surface volume (P2A01) , checked 26 September 2569 (2026). The cut/fill names in this chapter take the current surface relative to the target; if the surfaces are swapped, the meanings must be swapped. This slope formula is an average along a profile, not a raster slope algorithm around a pixel.

Never replace NoData with 0 m or use degree coordinates as metres. If there are no complete cells, report that there is no assessed area; even though an empty sum is mathematically zero, it is not evidence that the volume is zero. Partial cells at the edge must use the actual clipped area, not nA with full cells.

Practice changing the base

Raise the base by 0.5 m in every cell that has data, keeping the same mask and cell size, and compute cut, fill and net again.

F22 answer

New Δz = [0.5,1.5,−1.5] m; cut=8 m³, fill=6 m³, net=2 m³. The area is still 12 m². The net result decreases by 0.5×12=6 m³; ±0.001 m³ accepted. The NoData cell remains missing and is not converted to −0.5 m.

Download the applied formula practice set (CSV/JSON with answers) · synthetic data for practising calculations and checking units

Used in courses

How to cite this page

Drone Institute, Rangsit University. (2026). Terrain and volumes from drones. In UAS Technology Knowledge Hub (B.Tech.). https://rsu-uat.pk-research.work/en/kb/knowledge/drone-mapping/terrain-volume/

Original from Drone-Hub: https://drone.pk-research.work/knowledge/drone-mapping/terrain-volume/ · © PK-Research