Skip to content
LidarKit

Compare two DEMs in your browser

Drop two elevation models and see where they disagree, and by how much. You get a difference map, the accuracy figures and the volumes. Both files are read on this computer, so nothing is uploaded.

  • DEM of difference
  • RMSE, NMAD, LE95
  • Cut and fill
  • No upload

Reference DEM

Drop the reference GeoTIFF

or choose a file

single-band DEM, DSM or DTM

No file to hand? — Terrain model of the same block, 1 m cells (88.45 KB).

The one you trust. Differences are measured against this surface, so it should be the survey-grade product.

Compared DEM

Drop the compared GeoTIFF

or choose a file

single-band DEM, DSM or DTM

No file to hand? — Surface model of central Brussels, 1 m cells (88.44 KB).

The one being checked — the photogrammetric or newly processed model.

No upload. Processing runs in a Web Worker on your device — this app has no server component and no upload endpoint. How it works

What you get from two DEMs

Try the sample to compare a terrain model with the surface model of the same block. The difference you get back is the height of every building.

  • DIFFERENCE · COMPARED − REFERENCE

    A map of where they disagree

    Red where the compared model sits higher, teal where it sits lower, over a hillshade of the reference, so you can tell which roof or slope you're looking at.

  • MAP · OFFSET REMOVED

    The offset taken out of the picture

    When the mean offset is bigger than the spread, the map subtracts it by default so the pattern underneath shows. The numbers still report it.

  • STATS · 412,800 CELLS

    Bias and spread side by side

    Mean, RMSE, NMAD, standard deviation and the 90% and 95% bands, with a histogram of every difference.

  • VOLUMES · CUT AND FILL

    How much material moved

    The volume above and below the reference, and the net change, in the cubic units of your files.

  • COVERAGE · 4 CASES

    Holes are counted, not filled

    Every cell is sorted into both models, reference only, compared only or neither, so you know what the numbers actually cover.

  • 3D · RELIEF 50×

    The difference in 3D

    Paint the difference onto the reference surface, or stand the difference itself up as relief. The exaggeration is picked for you.

What is a DEM of difference?

Two elevation models of the same ground, subtracted cell by cell. What comes out is a third raster: how much higher or lower one surface sits than the other, everywhere they overlap.

It's how you check a new model against a survey you trust, see what changed between two dates, or work out how much material was moved. Same arithmetic, different question.

The subtraction is the easy part. What decides whether the answer holds up happens before it: which area both files cover, which grid they meet on, and which cells count. There's more on the surfaces themselves in DEM vs DSM vs DTM.

Compared

The newer model, or the one being checked

Reference

The one you trust, or the earlier date

Difference

lower0higher

Both are resampled onto one grid at the coarser input's cell size before the subtraction.

How to compare two DEMs

  1. 1. Drop both GeoTIFFs

    The reference you trust goes in the first slot, the model you're checking in the second. No files to hand? Press Try the sample.

  2. 2. Check the overlap

    Before the comparison runs you see the shared area, the grid it'll use and whether the coordinate systems match.

  3. 3. Read the map and the numbers

    Press Compare the two models. The map, the figures and the coverage come back together. Saving the difference GeoTIFF needs a free account.

Reading the numbers

Mean difference
The systematic offset. Usually a datum, or a photogrammetry block with no ground control.
RMSE
Offset and spread together, with big errors weighted heavily. The figure most accuracy reports quote.
Standard deviation
The spread once the offset is taken out.
NMAD
A spread that one wild cell can't move. Closer to what a typical cell is out by.
LE90 · LE95
The band 90% or 95% of cells fall inside, measured from the cells themselves.
Net volume
Fill minus cut: each cell's difference times its area, summed.

Watch for a mean much bigger than the NMAD. That's two surfaces of the same shape at different heights. It's a georeferencing issue, and shifting one model fixes it.

Supported features and limitations

Works today

  • Single-band GeoTIFF elevation models: DEM, DSM or DTM
  • Different cell sizes, origins and extents. Only the shared area is compared
  • Overview pyramids: each file is read from the level closest to the comparison grid
  • Comparison cell defaults to the coarser input, and can be set coarser
  • Difference map over a hillshade, with the mean offset removable
  • 3D view on the reference surface or as relief
  • Mean, median, RMSE, NMAD, standard deviation, MAE, LE90 and LE95
  • Cut, fill and net volume
  • Float32 GeoTIFF of the difference, with nodata and the reference CRS

Good to know

  • Nothing is reprojected. Files with different EPSG codes won't be compared unless you tick the box saying a label is wrong.
  • Holes stay holes. A cell needs a real value in both models, so every void loses a one-cell fringe rather than being guessed across.
  • Water is noisy or empty. Expect big differences or nodata over ponds and rivers.
  • Vegetation is the biggest honest difference. Photogrammetry sits on the canopy; LiDAR reaches into it.
  • Outlined buildings mean a shift. A bright ring around every roof is usually horizontal misalignment, not vertical error.
  • DSM minus DTM isn't an accuracy check. It's the height of what stands on the ground, which is what the sample shows. Compare like with like.

How it compares with desktop GIS

A desktop GIS can do almost anything with rasters, once you've set it up. This tool does one job: answer how two elevation models differ, on whatever machine you're at.

TopicThis toolDesktop GIS
Getting startedOpen the page. Nothing to install.Install a GIS, sometimes with extra plugins.
InputTwo GeoTIFF elevation models.Most raster formats.
Mismatched gridsResampled for you onto one grid at the coarser cell size.Often a separate alignment step before the subtraction.
Coordinate systemsChecked, not converted. Different codes stop the run.Usually reprojected on the fly.
Accuracy figuresBias, RMSE, NMAD, LE90/LE95 and coverage in one panel.Often put together from raster statistics by hand.
VolumesCut, fill and net, from the same difference.Common, sometimes through a separate tool.
Your filesRead on your computer, not uploaded.Also stay on your computer.
PriceFree to run. The download needs a free account.From free to commercial licences.

Got point clouds instead of rasters? Compare two LAS or LAZ files grids both clouds onto one grid, so nothing needs resampling. To make a DEM in the first place, use LAS to DEM.

Your elevation models stay on your computer

Both GeoTIFFs are read straight from your disk and compared by code running in a background worker on your own machine. There's no upload step, and no server behind this page that handles rasters.

Survey data is often under contract or simply not yours to share. Here it doesn't have to leave the laptop it's on.

You can check: open your browser's developer tools, watch the Network tab and run a comparison. The page counts anonymous events, such as "a comparison finished", with a rough file size. Nothing from inside your files goes with them. The privacy page has the details.

Frequently asked questions

Which file should be the reference?
The one you trust. Differences are compared minus reference, so a positive number means the model you're checking sits higher. Checking photogrammetry against a LiDAR survey? The LiDAR is the reference. Measuring change over time? The earlier survey is, and positive becomes growth.
Are my DEMs uploaded?
No. Both files are read from your disk and compared in a background worker on your own machine. Nothing from them is sent anywhere.
What cell size should the comparison use?
The coarser of the two inputs, which is what the field starts at. Comparing at the finer resolution doesn't recover detail the coarse model never had. It interpolates the coarse surface up and reports that as a difference. Going coarser still is fine when both models are noisy.
Why isn't the mean difference zero when the surfaces look aligned?
Usually a vertical datum. Two models referenced to different geoid or ellipsoid heights differ by a nearly constant amount, anything from a few centimetres to tens of metres. Photogrammetry without ground control floats too. If the mean is much bigger than the NMAD, that's an offset, and the NMAD is your accuracy figure.
What is NMAD, and why is it shown next to RMSE?
The normalised median absolute deviation: the median distance from the median difference, scaled by 1.4826 so it reads like a standard deviation. DEM errors usually have a long tail over water, glass and canopy, and RMSE squares that tail. RMSE alone overstates a typical cell; NMAD alone hides the tail. So you get both.
How are coordinate systems handled?
They're checked, not converted. If the two files declare different EPSG codes, the comparison stops and says so. There's a 'compare anyway' box for when you know a label is wrong. If a file declares no CRS, the two are assumed to match, and the only check is that their extents overlap.
What happens where one model has a hole?
The cell is left out and counted. The coverage panel splits cells into both, reference only, compared only and neither. Reference-only cells are holes in the new model, like water or shadow. Compared-only cells are usually interpolation reaching past the measured data.
How large can the rasters be?
There's no fixed file size limit. Each file is read from the pyramid level closest to the comparison grid, and the grid itself is capped, so memory follows the shared area rather than the file sizes. If the cell size you ask for won't fit, it's coarsened and the page tells you.
What do I download, and do I need an account?
A single-band Float32 GeoTIFF of the difference, tiled and Deflate compressed, with nodata at −9999 and the reference file's coordinate system. Running the comparison and reading the results is free; saving the GeoTIFF asks you to sign in with a free account.

Related tools

Learn more