Match the physical location and the height reference before subtracting the values. Treat a terrain grid as an independent observation of ground, especially near cliffs, bridges and sharp changes in slope.

A lidar hillshade of the terrain around Pole Creek in Oregon
Jason M. Stoker / U.S. Geological Survey, public domain.

Identify what each number measures

A hike recording places a lookout at 1,245 m while a terrain viewer estimates 1,219 m nearby. The 26 m difference is real arithmetic. Its explanation still depends on what each number represents. One could describe height above an ellipsoid while the other relates to a gravity-based vertical datum. A point might sit on a bridge or be moved by position error to an adjacent slope. A coarse grid might average a narrow ridge with nearby ground. Check these possibilities before treating the difference as a device error.

In GPX 1.1, elevation is an optional decimal value in a point. The specification states that measurements are metric, and also supports an optional geoid height field. An elevation value alone does not indicate which device settings, later corrections or vertical reference were used to obtain it. Look for documentation or metadata from the application or survey. If you cannot establish the reference, label it unknown rather than assuming the displayed value is comparable to a government dataset.

A mapped elevation model also has a horizontal reference, vertical reference and resolution. Read its documentation for the specific product and area, as the USGS DEM guidance distinguishes across products and coverage. A bare-earth grid is meant to describe ground rather than the top of vegetation. It is not an elevation observation of the person holding a receiver, especially on a structure above the surface. The sampled terrain may come from another date and data collection method.

Match the coordinate and surface before calculating a correction

Open both sources and identify a stable place, such as a broad trail intersection whose location you can confirm. Choose a point far enough from a cliff edge or bridge to avoid confusing nearby surfaces. Examine the locations around it. A reported offset of a few metres can matter far more on a steep slope than on level ground. The closest degree-coordinate match is useful only if the location and coordinate reference are interpreted correctly.

For a fictional example, suppose the terrain grid returns 1,205 m at the center of a broad junction. A representative GPX point at the same matched ground location gives 1,230 m. That difference is 25 m. Nearby points in an open meadow also differ by roughly 25 m. A reference or systematic offset is worth investigating. Now choose a separate bridge whose deck is about 12 m above the surrounding ground. A noticeably larger discrepancy there could be consistent with the different surfaces rather than a larger sensor error.

Compare another anchor on broad ground rather than resting everything on one spot. If the disagreement changes sign along the route, a fixed offset is an incomplete description. Consider timing, horizontal displacement and possible local grid effects. If the GPS-derived value describes a different reference, use an appropriate official conversion for the area when the references are known. Do not apply the offset you measured at a single site as a general correction without a supported reason.

Check units, resolution and the sampled grid

Read the unit labels at display and in the original file. A viewer can legitimately present metres as feet. A value around 1,200 m corresponds to about 3,937 ft. A large discrepancy near that unit ratio can be a direction for investigation, but a number that merely resembles a feet-to-metres error does not prove which source is mislabeled. Confirm by inspecting original or documented units. Convert both into a common unit before comparing any dates or heights.

Next inspect more than one grid cell or query near the recorded position. If the local mapped values change from 1,200 to 1,238 m as you move across the width of an uncertain route corridor, the terrain itself can explain much of an apparent mismatch. The cells model a surface with finite detail; interplotted values depend on the interface and its interpolation. Keep the official dataset identifier and edition rather than saving only a map screenshot.

Compare equal scopes. Source elevation is the particular measurement or estimate attached to a recorded sample. Total ascent adds many changes along a route. Even after checking a vertical reference, ascent can differ according to smoothness, sampling, route geometry, missing fields and the way values are combined. The Same Hike, Two Devices simulation shows a stable difference mixed with sample oscillation. It does not have measured map ground heights. Use it to practice separating offsets from vertical variation.

Report the evidence without overwriting it

Write down the matched landmark, approximate position, source height, terrain product height, known datum and any limits. “Ridge approach near open junction, about 25 m difference with reference of the export unconfirmed” is a reasonable finding. A note can add that one discrepancy was larger at a bridge and therefore not treated as a comparable ground measurement. That extra context matters more than keeping a long list of precise subtractions.

If a purpose requires a terrain-derived profile, treat it as a separate dataset based on the mapped ground and track position. Preserve the original export and state the conversion or sampling method you used. Substituting map heights everywhere might remove useful device observations or create apparently precise heights where the recorded path was uncertain. Your final answer should say which comparisons are supported and what evidence would make the others more useful.

For a useful control, compare two anchors on the same broad surface. If one apparently disagrees much more, inspect the position for either an offset, a mismatch in the landmark or the edge of a grid cell. A uniform correction supported by one data pair would make the other unexplained. Leave both results visible and list the particular reference or better field observation that would resolve them.

Open Same Hike, Two Devices in Workspace

Sources

Compare Tracks Recorded at Different Intervals →