Questions tagged [gpx]

GPX (the GPS Exchange Format) is a light-weight XML data format for the interchange of GPS data. Source: http://www.topografix.com/gpx.asp

GPX (the GPS Exchange Format) is a light-weight XML data format for the interchange of GPS data (waypoints, routes, and tracks) between applications and Web services on the Internet.

It was devised by Topographix.

Current Status

The GPX 1.1 schema was released on August 9, 2004.

Gpx example:

<?xml version="1.0" encoding="UTF-8"?>
<gpx version="1.1" creator="GeoWgs84 Harness">
  <metadata>
    <bounds minlat="-22.92166941" minlon="44.37930616" maxlat="-20.11240872" maxlon="45.58278193" />
  </metadata>
  <wpt lat="-22.85100527" lon="45.57800895">
    <name>Ox</name>
    <sym>Dot</sym>
  </wpt>
  <rte>
    <name>Spiral</name>
    <rtept lat="-22.85100527" lon="45.57800895">
      <name>Ox</name>
      <sym>Dot</sym>
    </rtept>
    <rtept lat="-22.85091497" lon="45.57800895">
      <name>A00</name>
      <sym>Dot</sym>
    </rtept>
    <rtept lat="-22.85083842" lon="45.57808352">
      <name>A01</name>
      <sym>Dot</sym>
    </rtept>
    <rtept lat="-22.85100527" lon="45.57800895">
      <name>Ox</name>
      <sym>Dot</sym>
    </rtept>
    <rtept lat="-22.85074986" lon="45.57828453">
      <name>A02</name>
      <sym>Dot</sym>
    </rtept>
    <rtept lat="-22.85072882" lon="45.57872908">
      <name>A03</name>
      <sym>Dot</sym>
    </rtept>
    <rtept lat="-22.85100527" lon="45.57800895">
      <name>Ox</name>
      <sym>Dot</sym>
    </rtept>
    <rtept lat="-22.85100526" lon="45.57956788">
      <name>A04</name>
      <sym>Dot</sym>
    </rtept>
    <rtept lat="-22.85211105" lon="45.58088949">
      <name>A05</name>
      <sym>Dot</sym>
    </rtept>
    <rtept lat="-22.85100527" lon="45.57800895">
      <name>Ox</name>
      <sym>Dot</sym>
    </rtept>
    <rtept lat="-22.85509172" lon="45.58241839">
      <name>A06</name>
      <sym>Dot</sym>
    </rtept>
    <rtept lat="-22.86168376" lon="45.58278193">
      <name>A07</name>
      <sym>Dot</sym>
    </rtept>
    <rtept lat="-22.85100527" lon="45.57800895">
      <name>Ox</name>
      <sym>Dot</sym>
    </rtept>
    <rtept lat="-22.87412204" lon="45.57800895">
      <name>A08</name>
      <sym>Dot</sym>
    </rtept>
    <rtept lat="-22.89371830" lon="45.55891257">
      <name>A09</name>
      <sym>Dot</sym>
    </rtept>
    <rtept lat="-22.85100527" lon="45.57800895">
      <name>Ox</name>
      <sym>Dot</sym>
    </rtept>
    <rtept lat="-22.91637356" lon="45.50742620">
      <name>A10</name>
      <sym>Dot</sym>
    </rtept>
    <rtept lat="-22.92166941" lon="45.39356015">
      <name>A11</name>
      <sym>Dot</sym>
    </rtept>
    <rtept lat="-22.85100527" lon="45.57800895">
      <name>Ox</name>
      <sym>Dot</sym>
    </rtept>
    <rtept lat="-22.85050504" lon="45.17892468">
      <name>A12</name>
      <sym>Dot</sym>
    </rtept>
    <rtept lat="-22.56621709" lon="44.84211913">
      <name>A13</name>
      <sym>Dot</sym>
    </rtept>
    <rtept lat="-22.85100527" lon="45.57800895">
      <name>Ox</name>
      <sym>Dot</sym>
    </rtept>
    <rtept lat="-21.80087521" lon="44.45769348">
      <name>A14</name>
      <sym>Dot</sym>
    </rtept>
    <rtept lat="-20.11240872" lon="44.37930616">
      <name>A15</name>
      <sym>Dot</sym>
    </rtept>
    <rtept lat="-22.85100527" lon="45.57800895">
      <name>Ox</name>
      <sym>Dot</sym>
    </rtept>
  </rte>
  <extensions />
</gpx>

Resources

376 questions
3
votes
2 answers

How to parse GPX file using Haskell's xml-conduit?

I'd like to use xml-conduit to parse GPX files. So far I've got the following: {-# LANGUAGE OverloadedStrings #-} import Control.Applicative import Data.Text as T import Text.XML import Text.XML.Cursor data Trkpt = Trkpt { trkptLat ::…
user1002430
3
votes
1 answer

What ellipsoid or geoid for GPX file elevations-and how do you know?

I have been poking around and have been unable to find a standard for what ellipsoid or geoid corresponds to "0" elevation in GPX files. Is there a standard? Do I just assume the WGS84 ellipsoid? Or if different standards are used, is there a way…
Dan Menes
  • 6,667
  • 1
  • 33
  • 35
3
votes
2 answers

Ruby GPX file parser

Advise what can parse GPX file in Ruby? I tried gpx, but it does not work with Ruby Enterprise Edition (https://github.com/dougfales/gpx/issues/1). I would not like to write a parser.
Shaliko
  • 201
  • 4
  • 10
3
votes
2 answers

Error using writeOGR {rgdal} to write gpx file

I am trying to use writeOGR to create a gpx file of points. writeOGR() will create a shp file with no error, but if I try to write a KML or GPX file I get this error. I'm using R 3.1.1 and rgdal 0.8-16 on Windows (I've tried it on 7 and 8, same…
user3818004
3
votes
1 answer

draw path in OpenStreetMap

I have a GPX file with me. I need to draw a root map using this GPX file with selected points(as stops) OpenStreetMap. What kind of steps I need to take. Please help me. Sample code in GPX file is given below
b_in_U
  • 640
  • 2
  • 7
  • 22
3
votes
1 answer

Read/process .fit files in JavaScript

I need to read and parse .fit files (used e.g. by Garmin devices, see fit sdk, a binary alternative to the GPX-file format) in the browser on the client side using Javascript (and e.g. FileReader). I am aware of (and have tried) Python and Perl…
jankoc
  • 118
  • 1
  • 7
3
votes
1 answer

Gpx file format, what is the correct format?

My iOS program will create a gpx file. What is the correct format between these two? Is it:
3
votes
3 answers

Xcode greys out gpx files in filebox

I hope I'm not overlooking anything, but I can't load gpx files into Xcode because they are greyed out in the filebox (see pic). This is in both location menues, in the debugger/location menu (see pic below "Add GPX File to Project" and the scema…
brainray
  • 12,512
  • 11
  • 67
  • 116
3
votes
1 answer

Exporting GPS data from a database into GPX or KML in android

I'm developing an app which tracks gps coordinates and stores them into seperate tables in a database. I want to export the gps data from the tables into GPX or KML format. I can't really find any tutorials nor explanations how to do this. Should i…
perzsa
  • 291
  • 4
  • 13
3
votes
2 answers

Android: need help parsing data from .GPX file

I followed a tutorial to learn to parse the data from the gpx file (which is in my raw folder), and for some reason no data is getting parsed into the NodeList. Here is my XMLParser class package bry.Bicker.OjaiHiking; import…
Brian Ecker
  • 2,017
  • 1
  • 21
  • 30
2
votes
1 answer

How to paste a custom format clipboard data into a TMemo?

This question refers to this one along with its accepted answer posted here on stackoverflow. I don't feel comfortable at Windows API programming. Exploring the way EasyGPS by Topografix handles clipboard manipulations, I discovered that it uses a…
menjaraz
  • 7,551
  • 4
  • 41
  • 81
2
votes
5 answers

Delphi free XML parser / Reader for GPX files

I am looking for a free easy to use XML parser / Reader for GPX files in Delphi and was wondering if anyone could recommend one or should i be using Delphi's own XML data binding / XML document? thanks Colin
colin
  • 2,983
  • 6
  • 41
  • 49
2
votes
1 answer

Reading a komoot xml file (gpx) with pandas

I want to read a xml file generated by komoot into a DataFrame. Here is the structure of the xml file:
principal-ideal-domain
  • 3,998
  • 8
  • 36
  • 73
2
votes
2 answers

SQL Server - parse GPX file

I'm trying to parse a GPX file within SQL Server 2019, but I'm hitting a snag with namespaces, I think. From what I can see - if the GPX file contains : xmlns="http://www.topografix.com/GPX/1/1" SQL returns a NULL. But if I remove that from the GPX…
BigIWT
  • 243
  • 1
  • 5
  • 14
2
votes
0 answers

Exporting to GPX file

When I import a .gpx file from my naviagation software into r using the gpx package it arrives in this format dput(test) list(routes = list(structure(list(Elevation = c(NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_,…
TDaw
  • 203
  • 2
  • 11