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
51
votes
8 answers

GPX files for iOS Simulator

Where I can find GPX files that I can import into my iOS Simulator? The iOS Simulator only contains static locations around the world and walk / bike / car drive simulations. This is not good enough for unit testing or other specific use cases. This…
Jakub
  • 13,712
  • 17
  • 82
  • 139
29
votes
6 answers

When using GPX in Xcode to simulate location changes, is there a way to control the speed?

I'm using the following GPX file in Xcode 4.2 to simulate a location change. It works well, but I can't control the speed of the location change. stamp seems to be not working. Does anyone have a solution for this?
lichen19853
  • 1,410
  • 2
  • 14
  • 21
25
votes
5 answers

How to calculate distance from a GPX file?

I have a GPX file with a GPS track. Now I want to calculate the distance I covered with this track. What's the best way to calculate this?
guerda
  • 23,388
  • 27
  • 97
  • 146
21
votes
3 answers

What is the difference between track and route in a GPX file

I wanted to know what is the basic difference between a GPX track and route file
rajan sthapit
  • 4,194
  • 10
  • 42
  • 66
17
votes
2 answers

Create XML doc by LINQ, add xmlns,xmlns:xsi to it

I try to create an GPX XML document by LINQ to XML. Everything works great, except adding xmlns, xmlns:xsi attributes to the doc. By trying it different way I get different exceptions. My code: XDocument xDoc = new XDocument( new XDeclaration("1.0",…
Tom
  • 3,899
  • 22
  • 78
  • 137
15
votes
1 answer

Multiple XML Namespaces in tag with LXML

I am trying to use Pythons LXML library to create a GPX file that can be read by Garmin's Mapsource Product. The header on their GPX files looks like this
lonerockz
  • 253
  • 3
  • 8
15
votes
4 answers

XmlSerialization and xsi:SchemaLocation (xsd.exe)

I used xsd.exe to generate a C# class for reading/writing GPX files. How do I get the resultant XML file to include the xsi:schemaLocation attribute eg. I want the following but xsi:schemaLocation is always missing
David Hayes
  • 7,402
  • 14
  • 50
  • 62
14
votes
1 answer

Xcode Default simulated location

I have set the Default Location in the Scheme setting for the app (see screenshot) and just send the app to Apple to get approved. However, the same version I also send out to QA, Project Managers and other devs using the Ad Hoc provisioning…
Paul Peelen
  • 10,073
  • 15
  • 85
  • 168
13
votes
6 answers

How to extract .gpx data with python

I am a new linux/python user and have .gpx files (output files that are made from GPS tracking software) and need to extract values into csv/txt for use in a GIS program. I have looked up strings and slicing etc. in my beginning python book, this…
Paul M.
  • 131
  • 1
  • 1
  • 4
12
votes
4 answers

Open Source/existing C# class to write GPX files? (C#)

I am looking for a C# library or class to help write GPX files from a collection of waypoints I have (lat/long, etc). I have found quite a few readers - but not so much for writing. Bonus points if it works on Compact Framework/WinMobile 6.5 - but…
Tim
  • 20,184
  • 24
  • 117
  • 214
12
votes
2 answers

Simulate iPhone (real device, NOT simulator) location over USB programmatically

I can simulate location through Xcode by preparing a GPX file with some coordinates, adding it to my project, running an app, and selecting the location when the app is running. Then, my whole iPhone's location is changed to that location (not just…
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
12
votes
3 answers

cannot find interface declaration for 'NSObject', superclass of 'GPXType'

I have done some research on that issue , but I have not found anything similar just yet. I am using iOS GPX framework to draw the path on map using GPX file. I have import iOS GPX.framework on my project. but I have face an issue. Please Guide me,…
Rahul Saini
  • 921
  • 2
  • 10
  • 23
10
votes
0 answers

How to create GPX for IOS Simulator with Altitude and Court

How can I (or can I) create a GPX file that will run on the IOS simulator and provide course and altitude information? I have added tags in the hope they might give altitude but no joy there. The larger issues I am having in dealing with the…
user3344003
  • 20,574
  • 3
  • 26
  • 62
9
votes
5 answers

Creating GPX file from array of CLLocation

My application needs to share array of CLLocations (Route) within devices using application.I have no experience of using GPX before this. Is GPX is best format to do it? How can I create GPX file from given such array of CLLocations? and is there…
chatur
  • 2,365
  • 4
  • 24
  • 38
9
votes
1 answer

What do the Strava (GPX) elements mean?

Kia ora, I exported all my GPX files from Strava so I could do some analysis on them and am stuck trying to figure out what type of activity each file is for. My file looks like this, for example, where the element seems to define the…
Finn LeSueur
  • 479
  • 5
  • 18
1
2 3
24 25