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
9
votes
5 answers

GPX Parser for Java?

Are there any Java libraries for parsing GPX files? I need to parse many GPX files into our own data structure (our own database).
Buju
  • 1,546
  • 3
  • 16
  • 27
8
votes
2 answers

Specifying accuracy in GPX or KML

I am developing an Android application and would like to play a recorded track in DDMS tool. Besides latitude and longitude, my recorded data has horizontal accuracy which I'd like to pass to Android phone simulator. Is there a way to specify…
GregK
  • 1,653
  • 2
  • 15
  • 19
8
votes
4 answers

Parsing local gpx file in Android

I followed this example to parse a local GPX file in Android: http://android-coding.blogspot.pt/2013/01/get-latitude-and-longitude-from-gpx-file.html All works fine to access "lat" and "long" but I need also to get the "ele" value but all my…
user2649377
  • 85
  • 1
  • 3
8
votes
1 answer

Create GPX file from GeoPoints

Is there any way to export GeoPoints into a GPX file? @Override public void onLocationChanged(android.location.Location location) { lat = location.getLatitude(); lon = location.getLongitude(); currGeo = new…
JiTHiN
  • 6,548
  • 5
  • 43
  • 69
7
votes
2 answers

How can I load multiple gpx files into PostGIS?

I have a bunch of gpx files that come from GPSLogger for Android app. Files look like:
radek
  • 7,240
  • 8
  • 58
  • 83
7
votes
3 answers

PHP Looping through a GPX to calculate total ascent/descent of a track

I want loop though a gpx file and calculate the total ascent and descent. I have a function that can calc the difference in elevation between two sets of lat long points and I've set up simplexml to read & loop through the gpx file trkseg…
Legionar
  • 7,472
  • 2
  • 41
  • 70
6
votes
2 answers

Gpx file format, what use of segment?

Gpx file is an XML document used to track spatio-temporal information. It look like: Except gpx super-tag, every tag can be…
BAD_SEED
  • 4,840
  • 11
  • 53
  • 110
6
votes
1 answer

Open KML/GPX files in appropriate external map app

My Flutter (Android and iOS) app generates KML or GPX files, which works as expected. Now I want to add a button "Open file" which should open such a system dialog where the installed map or other consuming apps (which can handle such formats) are…
S-Man
  • 22,521
  • 7
  • 40
  • 63
6
votes
10 answers

Simplification / optimization of GPS track

I've got a GPS track produced by gpxlogger(1) (supplied as a client for gpsd). GPS receiver updates its coordinates every 1 second, gpxlogger's logic is very simple, it writes down location (lat, lon, ele) and a timestamp (time) received from GPS…
GreyCat
  • 16,622
  • 18
  • 74
  • 112
6
votes
1 answer

Append child in XML document using Classic ASP

I have the following asp-classic code which appends 3 variables into an XML document, 'location_x', 'location_y' and 'date_and_time'. The ASP-Classic code - creates or appends an existing XML document. Function LoadObjecttoXML(strXMLFilePath,…
Jonathan
  • 148
  • 5
  • 21
6
votes
3 answers

How to display a track on a layer with lat and long

i just want to show a track on my map i tried as follow but the problem is i don't want to load track point in layer from GPX File (because i don't want to generate file from coordinates witch i get from GPSdevice programmatically) is there any way…
5
votes
0 answers

How to simulate elevation using Xcode?

I need to be able to test an elevation across two apps on my iPhone. One is mine, another is a 3rd party app that will commonly be used in association with mine. My app relies on elevation, but the primary navigation is via the 3rd party mapping…
KevBot
  • 17,900
  • 5
  • 50
  • 68
5
votes
1 answer

XCTest & GPX Files: Can Location Updates Be Started Automatically?

I have added a gpx file to my project; its name is TrailOfHistory.gpx. I have edited my project's scheme so that this file will be used by Xcode 9 to perform locations updates. Here are screen shots of the scheme's Run and Test configurations…
Verticon
  • 2,419
  • 16
  • 34
5
votes
1 answer

Android intent filter not working

My app can open the following file formats: kml (application/vnd.google-earth.kml+xml) kmz (application/vnd.google-earth.kmz) gpx (application/gpx+xml) I'm trying to set up properly my intent filters so that my app is proposed when trying to open…
Tim Autin
  • 6,043
  • 5
  • 46
  • 76
5
votes
0 answers

Spoofing CLVIsit using GPX file

I'm trying track a user's visits to different locations with CLVisit in CoreMotion but as far as I know a user has to be in a certain location for an (unspecified) amount of time before iOS recognises it as a 'visit'. I am spoofing the location in…
1
2
3
24 25