Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
GPS Exchange Format
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Family of open GPS file formats}} {{Infobox file format | name = GPS Exchange Format | icon = | logo = | screenshot = | caption = | extension = {{mono|.gpx}} | mime = application/gpx+xml and application/octet-stream | type code = | uniform type = | magic = | owner = | released = 2002 | latest release version = 1.1<ref name="gpx-main">{{cite web|url=http://www.topografix.com/gpx.asp|title=GPX: the GPS Exchange Format|website=topografix.com}}</ref> | latest release date = {{Start date and age|2004|08|09}} | genre = | container for = | contained by = | extended from = [[XML]] | extended to = | standard = | open = yes | url = {{URL|http://www.topografix.com/gpx.asp}} }} '''GPS Exchange Format''' ('''GPX''') is an [[XML schema]] designed as a common [[GPS]] data format for software applications. It can be used to describe [[waypoint]]s, [[GPS tracking|tracks]], and routes. It is an [[open format]]<ref name="wptType">{{cite web|url=http://www.topografix.com/GPX/1/1/#type_wptType|title=wptType|website=GPX 1.1 Schema Documentation β topografix.com}}</ref> and can be used without the need to pay license fees. Location data (and optionally elevation, time, and other information) is stored in tags and can be interchanged between GPS devices and software. Common software applications for the data include viewing tracks projected onto various map sources, annotating maps, and [[Geotagged photograph|geotagging photographs]] based on the time they were taken. ==Data types== [[File:GPX_format.svg|thumb|Example waypoint, route and track as they might be recorded by a GPS receiver.]] A GPX file's main components are [[Waypoint|waypoints]], [[GPS route|routes]], and [[Ground track|tracks]]: * A waypoint (wpt) contains the [[World Geodetic System#WGS 84]] (GPS) coordinates of a point and optionally other descriptive information. * A route (rte) is an ordered list of waypoints (rtept) representing a series of significant turn points leading to a destination.<ref name="rteType">{{cite web|url=http://www.topografix.com/GPX/1/1/#type_rteType|title=rteType|website=GPX 1.1 Schema Documentation β topografix.com}}</ref> In general, a route is used to describe directions for a journey which someone wants to take at some point in the future. * A track (trk) consists of possibly multiple segments (trkseg), which in turn each contain a series of waypoints (trkpt). It is typically used to represent journeys which somebody has already completed or recorded. Note that the XML tags enclosing each waypoint of a route or track segment are called rtept and trkpt, respectively, while the tag for the basic waypoint element is wpt. Despite this difference in name, they all hold the same data type called wptType. In addition to the above, GPX files can also contain additional data. The minimum properties for a GPX file are latitude and longitude for every single point. Some vendors, such as [[{{not a typo|Humminbird}}]] and [[Garmin]], use extensions to the GPX format for recording street address, phone number, business category, air temperature, depth of water, and other parameters.<ref>{{cite web | url = http://developer.garmin.com/web-device/garmin-mass-storage-mode-devices/ | title = Garmin Mass Storage Mode Devices - Garmin Developer | publisher = Garmin | access-date = 2013-03-26 | archive-date = 2014-08-20 | archive-url = https://web.archive.org/web/20140820153733/http://developer.garmin.com/web-device/garmin-mass-storage-mode-devices/ | url-status = dead }}</ref><ref>{{cite web | url = http://www8.garmin.com/xmlschemas/GpxExtensions/v3/GpxExtensionsv3.xsd | title = Garmin Gpx Extensions Schema | type = xsd (XML schema) | publisher = Garmin | access-date = 2013-03-26 }}</ref> ==Units== [[Geographic_coordinate_system#Latitude_and_longitude | Latitude and longitude]] are expressed in [[decimal degrees]], and elevation in meters, both using the [[World Geodetic System#WGS 84|WGS 84 datum]].<ref>{{Cite web |title=GPS eXchange Format (GPX) Reader/Writer |url=https://docs.safe.com/fme/html/FME-Form-Documentation/FME-ReadersWriters/gpxx/gpxx.htm |access-date=2024-02-04 |website=docs.safe.com}}</ref> Dates and times are expressed in [[Coordinated Universal Time]] (UTC) using [[ISO 8601]] format.<ref name="gpx-main" /> == Sample GPX document == The document below is a sample GPX file which contains three waypoints which correspond to the locations of the German, Swiss, and Austrian parliaments. <syntaxhighlight lang="xml"> <?xml version="1.0" encoding="UTF-8" standalone="no" ?> <gpx xmlns="http://www.topografix.com/GPX/1/1" version="1.1" creator="Wikipedia" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"> <!-- Comments look like this --> <metadata> <name>Data name</name> <desc>Valid GPX example without special characters</desc> <author> <name>Author name</name> </author> </metadata> <wpt lat="52.518611" lon="13.376111"> <ele>35.0</ele> <time>2011-12-31T23:59:59Z</time> <name>Reichstag (Berlin)</name> <sym>City</sym> </wpt> <wpt lat="48.208031" lon="16.358128"> <ele>179</ele> <time>2011-12-31T23:59:59Z</time> <name>Parlament (Wien)</name> <sym>City</sym> </wpt> <wpt lat="46.9466" lon="7.44412"> <time>2011-12-31T23:59:59Z</time> <name>Bundeshaus (Bern)</name> <sym>City</sym> </wpt> </gpx> </syntaxhighlight> ==See also== ; Concepts * [[Point of interest]] * [[OpenStreetMap]], a collaborative project to create free editable maps using, among others, GPX traces * [[Waypoint]] ; File formats * [[Exchangeable image file format]] * [[Geography Markup Language]] * [[Keyhole Markup Language|KML]] format, compatible with [[Google Earth]] * [[Shapefile]] * [[Training Center XML (TCX)|TCX]], Garmin Training Center XML ; Standards * [[NMEA 0183]] * [[NMEA 2000]] ; Software * [[GPSBabel]], used to upload/download/convert GPX files ==References== {{Reflist}} [[Category:GIS file formats]] [[Category:Global Positioning System|Exchange Format]] [[Category:Markup languages]] [[Category:XML-based standards]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Cite web
(
edit
)
Template:Infobox file format
(
edit
)
Template:Not a typo
(
edit
)
Template:Reflist
(
edit
)
Template:Short description
(
edit
)