TrailCam

Guides

Does a CSV export of a hike include elevation gain?

It depends on what the CSV is a summary of, not on whether elevation gain "fits" in a spreadsheet — a single figure like total elevation gain sits comfortably in one column of one row. What a plain CSV struggles to hold is the thing elevation gain is built from: a long, ordered chain of altitude readings, one per recorded point along the route. GPX was built around exactly that chain. CSV, in its ordinary form, was not, which is the real difference worth understanding before you pick one over the other.

The short answer

A CSV export can absolutely carry an elevation gain total — it is just one number, and a spreadsheet is a fine place to put a number next to a date, a distance and a duration. Where CSV runs into trouble is the elevation profile underneath that total: the altitude at every single recorded point along the route, in order. That profile is what a route map draws as a rising and falling line under the track. A summary-style CSV, built to list one row per hike, was never meant to hold that — it is built for totals, not for a chain of hundreds or thousands of readings.

What a CSV file is actually built to hold

CSV stands for comma-separated values, and the format is exactly that: rows of plain text, each one split into the same handful of columns. It has no concept of one row containing another, and no built-in way to say "these three hundred numbers all belong to this one hike." Every row stands alone. That makes it an excellent shape for a list of hikes — one row per walk, with columns for date, distance, moving time, pace and a single elevation gain figure — because a list of hikes is naturally flat: nothing in one hike's row needs to reach inside another.

What GPX carries that a flat table struggles with

A GPX file is built the opposite way on purpose. It is XML, which nests structure inside structure: a track contains segments, and each segment contains an ordered list of points, and each point can carry its own latitude, longitude, altitude and timestamp. That nesting is what lets a single file hold both the two-line summary of a hike and the several hundred altitude readings that summary was calculated from, without one getting in the way of the other. Elevation gain, as a running total added up point by point, is a natural fit for that structure — it is quite literally built by walking the nested list from one end to the other.

Put a full point-by-point elevation profile into a plain CSV and you either need one row per point, which turns a one-hike file into a file with hundreds of rows and no clean way to also state the hike's own totals, or you flatten it down to a single number and accept that the profile itself is gone. Most CSV exports, TrailCam's whole-history export included, take the second path on purpose — a compact table of totals across many hikes is the point of it, not a substitute for the track file underneath any one of them.

Why this usually does not matter for a single hike

The elevation gain total itself is not fragile — it is calculated once, from the recorded points, and the resulting number is exactly as accurate wherever it is written down afterward, spreadsheet cell or file summary alike. What changes between formats is not the number but whether the underlying climb is still there to look at afterward. A CSV row can tell you a hike gained 480 metres. It cannot show you where along the route those metres were gained, because the row was never given the points to draw that from. If seeing the shape of the climb matters — a graph rather than a single figure — that shape lives in the GPX file, or in the app that recorded it, not in the summary row.

Things that trip people up

  • Assuming a CSV cannot hold elevation gain at all — it can, as a single total; what it typically does not hold is the point-by-point profile that total was calculated from.
  • Expecting a whole-history CSV export to double as a replacement for GPX files — a summary table and a set of track files answer different questions, one row of totals per hike versus every recorded point.
  • Being surprised that a spreadsheet opened from a CSV export shows one elevation gain figure per hike rather than a chart — that is the format doing exactly what a flat table of rows is for.
  • Blaming the export for "losing" elevation data when a GPX file was never generated for that hike in the first place — CSV and GPX carry different things by design, not because one failed to include what the other has.

Where TrailCam fits in

TrailCam exports a single route or your whole history as GPX 1.1 — the format that keeps every recorded point, elevation included, and that Strava, Garmin Connect and Komoot read directly — or as CSV for a compact summary across your history. Elevation gain is always calculated from the same recorded track either way; the export you choose decides whether you get the full profile or the total. TrailCam is free to download.

Questions

Does a single-hike CSV export lose elevation data that a GPX file would keep?
A CSV built as a summary carries the elevation gain total but not the point-by-point altitude profile a GPX file keeps. The recorded data is the same either way — the export format decides how much of it comes along.
Why does TrailCam offer both GPX and CSV instead of just one?
They answer different questions. GPX keeps the full recorded track, point by point, which is what apps like Strava, Garmin Connect and Komoot read. CSV gives a compact summary across many hikes, which is easier to scan or drop into a spreadsheet.
Is the elevation gain number itself less accurate in a CSV export?
No. The total is calculated once from the recorded track, and it is the same number whether it ends up in a CSV cell or a GPX file's metadata. What differs is whether the profile behind that number travels with the export.

Recording your own routes

TrailCam is an iPhone app that records your route with GPS, keeps video clips, photos and voice notes pinned to the spot where you took them, and exports the result as GPX 1.1 or CSV. It is free to download.

Download on the App Store