GPX — Garmin TrackPointExtension (heart rate, cadence, temperature)
Eight trackpoints each carrying a Garmin TrackPointExtension with heart rate, cadence and air temperature. The GPX schema deliberately leaves `extensions` open, so this is the fixture for checking that a reader surfaces vendor data instead of discarding it on export.
<?xml version="1.0" encoding="UTF-8"?>
<gpx version="1.1" creator="Novus Examples geospatial fixtures" xmlns="http://www.topografix.com/GPX/1/1">
<metadata>
<name>Kestrel Bay Coast Road</name>
<desc>Synthetic GPS trace over an invented territory.</desc>
<time>2026-01-01T09:00:00Z</time>
</metadata>
<trk>
<name>Coast Road with sensor data</name>
<trkseg>
<trkpt lat="47.064024" lon="-12.482008">
<ele>12.1</ele>
<time>2026-01-01T09:00:00Z</time>
<extensions>
<gpxtpx:TrackPointExtension xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1">
<gpxtpx:hr>128</gpxtpx:hr>
<gpxtpx:cad>76</gpxtpx:cad>
<gpxtpx:atemp>11.5</gpxtpx:atemp>
</gpxtpx:TrackPointExtension>
</extensions>
</trkpt>
<trkpt lat="47.066181" lon="-12.478086">
<ele>18.9</ele>
<time>2026-01-01T09:00:15Z</time>
<extensions>
<gpxtpx:TrackPointExtension xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1">
<gpxtpx:hr>131</gpxtpx:hr>
<gpxtpx:cad>77</gpxtpx:cad>
<gpxtpx:atemp>11.7</gpxtpx:atemp>
</gpxtpx:TrackPointExtension>
</extensions>
</trkpt>
<trkpt lat="47.068297" lon="-12.474186">
<ele>24.8</ele>
<time>2026-01-01T09:00:30Z</time>
<extensions>
<gpxtpx:TrackPointExtension xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1">
<gpxtpx:hr>134</gpxtpx:hr>
<gpxtpx:cad>78</gpxtpx:cad>
<gpxtpx:atemp>11.9</gpxtpx:atemp>
</gpxtpx:TrackPointExtension>
</extensions>
</trkpt>
<trkpt lat="47.070538" lon="-12.470269">
<ele>30.5</ele>
<time>2026-01-01T09:00:45Z</time>
<extensions>
<gpxtpx:TrackPointExtension xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1">
<gpxtpx:hr>137</gpxtpx:hr>
<gpxtpx:cad>79</gpxtpx:cad>Specifications
- Crs
- WGS 84 (EPSG:4326)
- Encoding
- UTF-8
- Line Endings
- LF
- Seed
- 20260807
- Jitter Sigma Degrees
- 0.000025
- Start Time
- 2026-01-01T09:00:00Z
- Sample Interval Seconds
- 15
- Format
- GPX 1.1
- Trackpoints
- 8
- Extension Namespace
- http://www.garmin.com/xmlschemas/TrackPointExtension/v1
- Extension Fields
- hr, cad, atemp
- Heart Rate Range
- 128 to 149
Testing contract
Expected to pass- Scenario
- Import the track and re-export it, then compare the extension elements.
- Expected result
- All three extension fields survive the round trip on every point; a reader that drops unknown extensions loses 24 sensor values.
What is a .gpx file?
GPX (GPS Exchange Format) is an XML schema for GPS data, storing waypoints, routes, and tracks with coordinates, elevation, and timestamps. It is the standard interchange format for GPS devices and fitness and navigation apps. Track points capture recorded movement over time.
How to use this file
Use an example GPX file to test GPS track parsing, elevation and timestamp handling, and tools that import routes or visualize recorded activity.
How to use this file for testing
“GPX — Garmin TrackPointExtension (heart rate, cadence, temperature)” is a deterministic Novus Examples fixture for Geospatial, Metadata testing, Time-series data. GeoJSON, GPX, and KML files with points, lines, polygons, and tracks — for testing map tools, route parsers, and geo importers.
Documented properties for this file: seed 20260807 · UTF-8 · LF. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.
Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.
Geospatial fixtures publish one invented territory across formats, with the coordinate reference system and feature counts documented in specs. Convert or reproject and diff against the twin in the same group; edge-case geometries state exactly which assumption they are built to break.
Code examples
import gpxpy # pip install gpxpy
with open("gpx-trackpoint-extensions.gpx") as f:
gpx = gpxpy.parse(f)
print(sum(len(t.segments) for t in gpx.tracks), "segments")Related files
- kmlKML — TimeSpan and TimeStamp Time PrimitivesFour Placemarks with a `TimeSpan` and one with an instantaneous `TimeStamp`, which is what drives the time slider in a globe viewer. Time is the first thing a KML-to-GeoJSON conversion drops, because RFC 7946 has no place to put it.

- gpxGPX — Out-of-Order and Duplicated TimestampsSeven trackpoints whose timestamps go forwards, backwards, and then repeat — the pattern a receiver produces after a clock correction or a buffered replay. Naive speed calculations divide by a negative or zero time delta and emit impossible values.

- gpxGPX — Single-Segment Track (24 points)The baseline GPS trace for this category: 24 timestamped, elevated trackpoints in a single segment, walking the Coast Road of the invented territory. Every other GPX fixture here is this file with one thing changed.

- gpxGPX — Track Split Into Two Segments by a PauseThe same 24 points split into two `trkseg` elements with a ten-minute gap between them — what a receiver writes after a stop or a signal loss. Tools that concatenate segments without noticing the boundary report a moving average dragged down by a pause that never happened on the move.

- gpxGPX — Track With a Single TrackpointA track containing exactly one point, which is what a receiver writes when a recording is stopped immediately. Distance, speed and bearing all need a pair of points, so this is the fixture that finds off-by-one loops and empty-slice crashes.

- geojsonGeoJSON — bbox on Every FeatureThree features that each carry their own bbox. Spatial indexes are often built from these declared boxes instead of the geometry, so a wrong or stale one produces a query that silently misses features.

Generated by generation/geospatial.py. Free for any use, no attribution required — license.