Skip to content
Novus Examples
gpx859 B

GPX — Route (rte) Rather Than a Track

A `rte` element: an ordered list of waypoints describing a planned route, with no timestamps because it has not been travelled yet. Many importers only look for `trk` and report this perfectly valid file as empty.

Preview — first 28 linesgpx
<?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>
  <rte>
    <name>Kestrel Bay to Marram</name>
    <rtept lat="47.064" lon="-12.482">
      <name>WP1</name>
      <desc>Turn 1 of the Coast Road</desc>
    </rtept>
    <rtept lat="47.0812" lon="-12.451">
      <name>WP2</name>
      <desc>Turn 2 of the Coast Road</desc>
    </rtept>
    <rtept lat="47.0995" lon="-12.4203">
      <name>WP3</name>
      <desc>Turn 3 of the Coast Road</desc>
    </rtept>
    <rtept lat="47.112" lon="-12.3915">
      <name>WP4</name>
      <desc>Turn 4 of the Coast Road</desc>
    </rtept>
  </rte>
</gpx>

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
Routes
1
Routepoints
4
Tracks
0
Has Elevation
false
Has Time
false

Testing contract

Expected to pass
Scenario
Import the file into a tool that normally reads recorded tracks.
Expected result
Four route points load in order with their names; the file is not reported as containing no data just because it has no track.

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 — Route (rte) Rather Than a Track” is a deterministic Novus Examples fixture for Geospatial, Conversion testing, Data import. 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-route.gpx") as f:
    gpx = gpxpy.parse(f)
print(sum(len(t.segments) for t in gpx.tracks), "segments")

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