GPS tracks (.gpx) as a route outline
Open a .gpx file in a repository and see the route drawn as an outline, with its track name, distance, climb and point count.
- Web: the blob page draws an inline SVG on the server (
src/web/render/gpx.ts). It scales to the column (max-width: 100%), so it fits a phone; the facts arestatus-rows.?view=source, Raw and Download work as for any file. - Terminal: the workspace opens a
.gpxas a Fact / Value table (src/tui/screens/workspace.ts, sharingparseGpxandgpxFacts);sflips to the source. The status line reads4 facts. - Distance is the haversine sum, climb the sum of rises. No map tiles, no network.
- Beyond 20,000 points (
POINT_CAP) the outline is thinned evenly, ends kept; the count stays true. - The scan stops after 100,000 tags (
TOKEN_CAP) or 25,000 points (READ_POINT_CAP): the first part is drawn, with a line under it saying the file goes on and that distance and climb count only that part; the terminal adds a "Read: first part only" fact. What a person loses: a track point written with<ele>and<time>is about nine tags, so a recorded track past some 11,000 points is drawn, measured and counted as its first part only. - A file that is not readable GPX shows as source, with a one-line reason on the web. DOCTYPE entities are never expanded; all text is escaped.