How accurate the elevation data is
Measured on 2026-11-05 by comparing terrain surfaces with published National Geodetic Survey marks near the plan's test fields. To repeat it, run python -m gis_worker.check_marks in the worker image. It needs the network, so it isn't in CI.
Results
Error is the surface minus the mark's published NAVD88 height, in meters.
| Field | Source | Marks | Median | RMSE | Largest |
|---|---|---|---|---|---|
| Fargo | USGS ND_3DEPProcessing_D22 | 9 | +0.146 | 0.171 | +0.338 |
| Moorhead | USGS MN_RedRiver_D23 | 36 | +0.192 | 0.205 | +0.409 |
| Moorhead | USGS ND_3DEPProcessing_D22 | 31 | +0.165 | 0.183 | +0.315 |
| Moorhead | MnTopo 1 m, reprojected | 58 | +0.186 | 0.193 | +0.330 |
| Mankato | USGS MN_RiverEast_B23 | 96 | +0.075 | 0.165 | -0.908 |
| Mankato | MnTopo 1 m | 110 | +0.080 | 0.175 | -0.909 |
| Brookings | USGS SD_EasternSD_2020_B20 | 4 | +0.072 | 0.132 | +0.203 |
Around each median, about two-thirds of marks fall within 7 to 11 cm, and 95% within 19 to 35 cm.
Brookings has only 4 marks, so it's weak evidence. The others are reasonable samples of one area each.
More states, added 2026-11-08
One test field in each state whose criteria came in item 129, and Iowa, under the same rules, after the fixes described below:
| Field | Source | Marks | Median | RMSE | Largest |
|---|---|---|---|---|---|
| Ames | USGS IA_NorthCentral_2020_D20 | 8 | -0.004 | 0.062 | +0.103 |
| Champaign | USGS IL_8County_PlusChampaign_2019_B19 | 7 | -0.140 | 0.329 | -0.742 |
| West Lafayette | USGS IN_Indiana_Statewide_LiDAR_2017_B17 | 8 | -0.143 | 0.297 | -0.513 |
| Bowling Green | USGS OH_LowerMaumee_B16_2016 | 5 | +0.048 | 0.163 | -0.301 |
| Fond du Lac | USGS WI_Statewide_2018_A18 | 17 | -0.004 | 0.269 | -0.727 |
The same run also found USGS's MN_RedRiver_D23 at Fargo, on 6 marks: +0.194 median, 0.230 RMSE, +0.357 largest. Every field's marks are few, from 5 to 17, so each is weak evidence on its own.
NOAA Digital Coast, added 2026-11-08
| Field | Source | Marks | Median | RMSE | Largest |
|---|---|---|---|---|---|
| Wood County, OH | NOAA OH_WoodCounty_DEM_2022_10406 | 14 | +0.193 | 0.266 | -0.573 |
Marks within 8 miles of 41.30 N, 83.55 W, under the same rules as above. The DEM is in Ohio North state plane, in US survey feet with heights in NAVD88 feet, so this checks the unit conversion and the warp into UTM zone 17 as well as the data. About two-thirds of marks fall within 12 cm of the median. The largest error is a concrete monument, 695, which sits 0.57 m above the surface; the next largest is 0.42 m.
check_marks doesn't include it, because NOAA's datasets are found through the worker's database index. It was run once with the same find_marks and dem_height_at, reading tiles from the dataset's tile index.
What this establishes
- Heights are in the right datum and unit. A mistake there shows up as meters of error, and that's how one was found. The first run at West Lafayette and Fond du Lac put the surface 131 m and 179 m below the marks. USGS's index gives those projects' lidar in NAVD88 US survey feet, and the worker took that for the 1 m DEM too, so it multiplied heights already in meters by 0.3048. Each 1 m DEM's metadata says "All bare earth elevation values are in meters and are referenced to the North American Vertical Datum of 1988 (NAVD88)", so they're now taken as that. Bowling Green's DEM was refused outright: its older title splits the project's name with spaces, and the index lookup missed it. Both were fixed on 2026-11-08, and the numbers above are after the fix. Terrain built from a DEM like these before then is at the wrong scale, and has to be built again.
- Crossing a UTM zone doesn't move anything. At Moorhead, MnTopo is reprojected from zone 15 and USGS's data is used as it is in zone 14. At the 29 marks both cover, the two surfaces differ by a median of 2 mm and at most 2.6 cm.
- The pipeline reads the data correctly. Eight sampled points at each of three builds were within 7.7 cm of USGS's own elevation service.
What this doesn't establish
- Why surfaces sit above the marks in Minnesota and the Dakotas. Every source there is 7 to 19 cm high, and three separately flown datasets agree on it, so it isn't this pipeline. It isn't so everywhere: Champaign and West Lafayette are 14 cm low, and Ames and Fond du Lac within half a centimeter. Marks set below grade, or lidar returns from short vegetation, could explain a high surface, but neither was tested. Nothing corrects for it.
- The largest remaining errors. A few Mankato marks are off by about 0.9 m, including one recovered in 2011 with a good position. These weren't investigated.
- Accuracy within a field. Marks are mostly along roads, kilometers apart. Tile grades depend on differences over short distances within a field, which this doesn't measure.
Public lidar shouldn't be taken as survey-grade. For scale, a 0.1% grade falls only 0.3 m over 300 m, which is about the 95% spread above. An engineer should judge what that means for design. Results stay preliminary until surveyed, as the plan requires.
Through the profile panel
The marks check reads each mark's cell straight from the source's tiles. A person sees elevations another way: the worker builds a DEM and stores it as a Cloud Optimized GeoTIFF, and the browser reads it back for a profile or under the cursor.
python -m gis_worker.profile_marks DIR builds and stores a DEM around each fair mark within 8 miles of Mankato, as it would a field's, and MARKS_DEM_DIR=DIR pnpm exec vitest run ngs-marks reads each through the profile panel's code. On 2026-11-08, all 115 marks on USGS's MN_RiverEast_B23 came out at exactly the height the worker read. Against the published heights, the median error was +0.081 m, the RMSE 0.174 m, and the largest -0.908 m. So building, storing and reading add nothing. It covers more marks than the check above, which found 96, because that one only reads the tiles touching the test field.
Surfaces gridded from point clouds
A point cloud is gridded from its ground points with inverse distance weighting, after being reprojected from Web Mercator. Compared with USGS's own DEM on 2026-11-06, over about 340,000 cells at each site:
| Site | Compared with | Median | 5th to 95th percentile |
|---|---|---|---|
| Fargo | The same flight | 0.0 cm | -3.5 to +4.5 cm |
| Brookings | The same flight | 0.0 cm | -3.4 to +4.6 cm |
| Moorhead | A flight three years later | -4.4 cm | -7.8 to -0.7 cm |
So gridding adds no measurable bias or shift of its own. Each build repeats this comparison when a ready-made DEM exists, and warns above a 15 cm median, or when over 10% of cells differ by more than 15 cm. These thresholds are judgments.
A grid is only offered if the data can put about one ground point in each cell, using ground points measured at the field, since all returns would overstate it. In one Fargo sample only 30% of points were ground.
Every build is checked against USGS's 1/3 arc-second DEM
A wrong height unit or datum leaves a surface that looks like ground. The 1 m DEMs built at 0.3048 of their height passed every check there was, because the only test of the heights themselves was that they fall between -100 m and 4,500 m. They were found by hand, against survey marks.
So every build, whatever it came from, is compared with USGS's 1/3 arc-second DEM before anything is saved. That DEM covers the country at about 10 m, is always NAVD88 in meters, and comes from USGS's own processing rather than from the metadata of the source being built. The code is in services/gis-worker/gis_worker/terrain/reference.py.
- What's compared. The built surface less the reference, at the center of each of the reference's cells on the surface: about 10,000 places for a 160-acre field, and every few cells for a larger area. The median is what's judged, so a pit, a new embankment or a road doesn't decide it.
- Over 3 m, the build is refused, and nothing is saved. The message gives the typical height of each. If the surface is about 0.305 of the reference's height, it says the heights are probably meters converted as if they were feet. If it's about 3.28 times, it says they're probably feet read as meters. Otherwise it says the unit or datum is probably wrong.
- Over 1.6 m, it's built and flagged, with what it differs by.
- Under that, the difference is kept with the terrain and shown in its details.
- If the reference can't be read, the build goes on as it used to, and the terrain says the check wasn't made.
Where the thresholds come from
USGS gives the 1/3 arc-second DEM's accuracy in the conterminous US as about 0.82 m RMSE, tested against almost 25,000 NGS points (Stoker and Miller, 2022, "The accuracy and consistency of 3D Elevation Program data: A systematic analysis"). It was 1.55 m when tested in 2013.
- 1.6 m is 1.96 times 0.82 m, which is what the reference's own error explains 95 times in 100. Real change in a field between surveys, from tillage, land forming or subsidence, is decimeters.
- 3 m is a judgment. It's about twice the reference's 95% error, and it's what that error was under the 2013 figure, which still describes places where the reference hasn't been remade from lidar. A refused build leaves a person with no way to use that source, so the threshold leans away from refusing sound data. The audit that asked for this check suggested about 2 m.
- What it's for is far larger than either. Feet read as meters is an error of 0.7 m for every meter of height, which is 190 m at Fargo. Ellipsoid heights are 8 m or more off across the conterminous US.
- What it can't catch. A unit error on ground within about 4 m of sea level, which is smaller than 3 m. A datum 1 m off, such as NGVD29, which is refused by what the source declares and not by this. Anything outside the reference's coverage.
When a point cloud or an upload is also compared with a ready-made DEM, as below, and the reference couldn't be read, a difference of more than 3 m between those two refuses the build as well. With no third surface, there's no telling which is wrong.
A terrain is only checked when it's built. One reused from an earlier build keeps what that build recorded, including a check that couldn't be made.
Which marks count
A DEM models bare ground, so terrain/ngs.py only uses marks that are:
- at ground level: rods and concrete monuments, not bridges or buildings
- leveled, at first or second order, and not converted from an older datum
- still there, and not reported missing or destroyed
- in a known place, with a position not scaled off a map
The last rule was added after seeing the first results. The others were fixed first, and that run found errors of almost 3.5 m. Brookings had an RMSE of 1.126 m over 15 marks. Grouping by the record's posSource showed why: 11 of those 15 positions were scaled off a map, which is good to about 100 m, and 9 of those were off by over 0.5 m. The 4 properly located marks were all within 0.2 m. Mankato's MnTopo RMSE fell from 0.388 m to 0.175 m under the same rule.
The rule is sound without reference to the errors, since a position good to 100 m can't locate a 1 m cell. But it did improve these numbers, and that's why the earlier ones are here.
Rules for terrain files
- Output is always the project's coordinate system, with NAVD88 heights in meters. US survey feet (EPSG:6360) and feet (EPSG:8228) are converted. Datums that need a shift, such as NGVD29, are refused, and so is an index that contradicts its file, or impossible elevations.
- Cells are copied exactly when they can be. USGS's tiles declare NAD83 while USGS's index says NAD83(2011). They're the same coordinates under an older label, so within a UTM zone nothing is resampled when building at the source's own cell size (asking explicitly for that size is byte-for-byte identical to leaving it unset).
- Same-resolution reprojection uses bilinear interpolation, and provenance says so. A NAD83-labeled file crossing a zone stays in its own datum, so only the projection changes and no datum shift moves it.
- Coarsening a DEM uses area-weighted averaging (
Resampling.average), and provenance says so. When a build asks for a cell size coarser than the source DEM's native grid, GDAL averages all contributing valid source cells onto whole multiples of the requested cell size, ignoring nodata cells. Bilinear interpolation only samples 4 nearby source centers (missing 56% of source cells at 3 m and 84% at 5 m from a 1 m source), whereas area-weighted averaging preserves mean elevation and volume without aliasing. Provenance records the built cell size (resolution_m), the source's own cell size (source_resolution_m), andresampling: "average". - Requests finer than a DEM source's native grid are refused, never upsampled silently. Asking for 0.5 m from a 1 m DEM fails with the source's own cell size rather than fabricating sub-cell detail.
- A coarser grid is not more accurate than its source. Lidar vertical error is spatially correlated across a field (see the 7 to 19 cm site medians above), not independent cell-to-cell noise, so averaging finer cells does not reduce stated vertical accuracy (
RMSEz) and smooths small features such as narrow ditches or ridges. For a resampled build, the stored original DEM is the resampled surface: cover calculations, profiles, and water tools all read it, and Terrain source says so plainly. - A point cloud file that contradicts its listing is refused too. A LAS or LAZ file can declare a vertical system in its header. If that's a datum other than NAVD88, or a unit that isn't the one USGS's index or the person gave, the file is refused, as a DEM is. US survey feet and international feet count as the same unit: they differ by 2 parts in a million, under a millimeter at 300 m. Many files declare no vertical system, and those rest on the check against the 1/3 arc-second DEM.
- Projects joined into one surface are measured where they overlap, and never adjusted. See "Mixed-vintage coverage" in
hard-cases.md.
Survey files
- A survey's points are kept as points, with the names and codes the file gives them, and shown on the map. Building a surface from them is a separate choice, because that surface becomes the project's terrain in place of the lidar.
- Columns are found by name, such as Point, Northing, Easting, Elevation and Description. A file without a header needs its order given, in the letters surveyors use: PNEZD, PENZD, PNEZ, PENZ, NEZ or ENZ.
- Coordinates are converted with PROJ from the system a person picks. The upload form lists the NAD83(2011) state plane zones of North Dakota, South Dakota, Minnesota and Iowa, in meters and in the foot EPSG defines for each: international feet for North Dakota, US survey feet for the others. Any other EPSG code can be entered.
- Heights have to be NAVD88, in meters, US survey feet or international feet. Ellipsoid heights straight from GNSS, and NGVD29 heights, aren't accepted, since converting them needs geoid or datum shift grids.
- A survey with no point within 5 km of the project is refused. That's what the wrong coordinate system, swapped northings and eastings, or feet read as meters all look like.
- Checked against NGS mark RP1128, HORACE RM A, near Fargo. Its published North Dakota South coordinates, converted to international feet, land within 1e-7 degrees of its published position, and its NAVD88 height comes back to the millimeter. That checks the projection, units and column order. It doesn't check the shifts between NAD83 realizations. The mark is published in NAD83(1996) and read here as NAD83(2011), and the projection is the same for both.
Comparing a survey with the terrain, and adopting it
- Each surveyed point is compared with the terrain cell holding it, on the original surface, never the conditioned one. For each file, the panel gives survey less terrain as a mean, a median, an RMSE, a scatter (the sample standard deviation) and the largest difference.
- Adopting a survey moves the ground the design uses. The terrain gets a correction that's exactly each point's difference on that point, and fades to nothing 30 m away. Each point within reach weighs 1/d² − 1/30², and the terrain keeps a weight of 1/30² of its own, which wins away from the points. That keeps the terrain's shape between points, such as a ditch, and moves it to meet them, rather than drawing straight lines from one point to the next.
- The 30 m reach is a judgment, not a cited value. It's about two stations of a line surveyed every 50 ft, so a profile survey adjusts its whole line, and a field topo shot every 100 ft reaches most of the way between shots. It needs an engineer's review, and so does the shape of the fade.
- The browser and the layout worker use the same code, in
packages/layout/src/survey-adjustment.ts, so a layout generated with a survey adopted sits on the same ground as the calculations. - Results worked out before a survey was adopted or dropped are marked: generated layouts and option sweeps say so until they're run again. Calculations are redone straight away. A review made before then lapses, as it does for any change to the design's elevations.
- The field task to survey the ground along the mains clears once an adopted survey reaches every main all along, meaning no stretch of a main is more than 30 m from a surveyed point, checked every 5 m. Otherwise it names the mains left.