Last modified by Farooq Sheikh on 2019/10/11 06:07

What is a GPX file?

Files with GPX extension represent GPS Exchange format for interchange of GPS data between applications and web services on the internet. It is a light-weight XML file format that contains GPS data i.e. waypoints, routes and tracks to be imported and red by multiple programs. GPX file format is open and is supported by variety of applications and GPS devices. GPS data from such files can be loaded for display on mapping applications for geo-spatial purposes. 

GPX File Format

A GPX file consists of latitude and longitude location data, elevation values and other possibly other descriptive information. Location data is expressed as decimal degrees and elevation is expressed in meters. Time in a GPX file is are in Coordinated Universal Time (UTC) using ISO 8601 format. The benefits of using a GPX file are as follow:

  • GPX allows you to exchange data with a growing list of programs for Windows, MacOS, Linux, Palm, and PocketPC.
  • GPX can be transformed into other file formats using a simple webpage or converter program.
  • GPX is based on the XML standard, so many of the new programs you use (Microsoft Excel, for example) can read GPX files.
  • GPX makes it easy for anyone on the web to develop new features which will instantly work with your favourite programs.

The GPX Schema shows the representation fo GPX file format for reference.

Essential Data

Following is essential data that is part of a GPX file for representation of GPS data.

  • Waypoints:  A waypoint is a WGS84 (GPS) coordinates of a point and represent layer of features of OGR type wkbPoint
  • Routes: Represent a layer of features of OGR type wkbLineString. It includes a list of track points, which are waypoints showing a turn or stage points which lead to a destination
  • Tracks: Tracks represent layer of features of OGR type wkbMultiLineString. It is made of at least one segment containing waypoints in an ordered list of points describing a path. It consists of a list of track points which represent a continuous GPS track. 

GPX Example File

The following GPX file shows the organization of GPS data in a GPX file and can give a good idea about the contents of a GPX file.

<gpx xmlns="" xmlns:gpxx="" xmlns:gpxtpx="" creator="Oregon 400t" version="1.1" xmlns:xsi="" xsi:schemaLocation="">
   <link href="">
     <text>Garmin International</text>
   <name>Example GPX Document</name>
     <trkpt lat="47.644548" lon="-122.326897">
     <trkpt lat="47.644548" lon="-122.326897">
     <trkpt lat="47.644548" lon="-122.326897">


Created by Kashif Iqbal on 2019/09/10 02:59