1 <?xml version=
"1.0" encoding=
"utf-8"?>
3 xmlns:
xsd=
"http://www.w3.org/2001/XMLSchema"
4 xmlns=
"http://www.topografix.com/GPX/1/1"
5 targetNamespace=
"http://www.topografix.com/GPX/1/1"
6 elementFormDefault=
"qualified">
10 GPX schema version
1.1 - For more information on GPX and this schema, visit http://www.topografix.com/gpx.asp
12 GPX uses the following conventions: all coordinates are relative to the WGS84 datum. All measurements are in metric units.
16 <xsd:element name=
"gpx" type=
"gpxType">
19 GPX is the root element in the XML file.
24 <xsd:complexType name=
"gpxType">
27 GPX documents contain a metadata header, followed by waypoints, routes, and tracks. You can add your own elements
28 to the extensions section of the GPX document.
32 <xsd:element name=
"metadata" type=
"metadataType" minOccurs=
"0">
35 Metadata about the file.
39 <xsd:element name=
"wpt" type=
"wptType" minOccurs=
"0" maxOccurs=
"unbounded">
46 <xsd:element name=
"rte" type=
"rteType" minOccurs=
"0" maxOccurs=
"unbounded">
53 <xsd:element name=
"trk" type=
"trkType" minOccurs=
"0" maxOccurs=
"unbounded">
60 <xsd:element name=
"extensions" type=
"extensionsType" minOccurs=
"0">
63 You can add extend GPX by adding your own elements from another schema here.
69 <xsd:attribute name=
"version" type=
"xsd:string" use=
"required" fixed=
"1.1">
72 You must include the version number in your GPX document.
76 <xsd:attribute name=
"creator" type=
"xsd:string" use=
"required">
79 You must include the name or URL of the software that created your GPX document. This allows others to
80 inform the creator of a GPX instance document that fails to validate.
86 <xsd:complexType name=
"metadataType">
89 Information about the GPX file, author, and copyright restrictions goes in the metadata section. Providing rich,
90 meaningful information about your GPX files allows others to search for and use your GPS data.
93 <xsd:sequence> <!-- elements must appear in this order -->
94 <xsd:element name=
"name" type=
"xsd:string" minOccurs=
"0">
97 The name of the GPX file.
101 <xsd:element name=
"desc" type=
"xsd:string" minOccurs=
"0">
104 A description of the contents of the GPX file.
108 <xsd:element name=
"author" type=
"personType" minOccurs=
"0">
111 The person or organization who created the GPX file.
115 <xsd:element name=
"copyright" type=
"copyrightType" minOccurs=
"0">
118 Copyright and license information governing use of the file.
122 <xsd:element name=
"link" type=
"linkType" minOccurs=
"0" maxOccurs=
"unbounded">
125 URLs associated with the location described in the file.
129 <xsd:element name=
"time" type=
"xsd:dateTime" minOccurs=
"0">
132 The creation date of the file.
136 <xsd:element name=
"keywords" type=
"xsd:string" minOccurs=
"0">
139 Keywords associated with the file. Search engines or databases can use this information to classify the data.
143 <xsd:element name=
"bounds" type=
"boundsType" minOccurs=
"0">
146 Minimum and maximum coordinates which describe the extent of the coordinates in the file.
151 <xsd:element name=
"extensions" type=
"extensionsType" minOccurs=
"0">
154 You can add extend GPX by adding your own elements from another schema here.
161 <xsd:complexType name=
"wptType">
164 wpt represents a waypoint, point of interest, or named feature on a map.
167 <xsd:sequence> <!-- elements must appear in this order -->
168 <!-- Position info -->
169 <xsd:element name=
"ele" type=
"xsd:decimal" minOccurs=
"0">
172 Elevation (in meters) of the point.
176 <xsd:element name=
"time" type=
"xsd:dateTime" minOccurs=
"0">
179 Creation/modification timestamp for element. Date and time in are in Univeral Coordinated Time (UTC), not local time! Conforms to ISO
8601 specification for date/time representation. Fractional seconds are allowed for millisecond timing in tracklogs.
183 <xsd:element name=
"magvar" type=
"degreesType" minOccurs=
"0">
186 Magnetic variation (in degrees) at the point
190 <xsd:element name=
"geoidheight" type=
"xsd:decimal" minOccurs=
"0">
193 Height (in meters) of geoid (mean sea level) above WGS84 earth ellipsoid. As defined in NMEA GGA message.
198 <!-- Description info -->
199 <xsd:element name=
"name" type=
"xsd:string" minOccurs=
"0">
202 The GPS name of the waypoint. This field will be transferred to and from the GPS. GPX does not place restrictions on the length of this field or the characters contained in it. It is up to the receiving application to validate the field before sending it to the GPS.
206 <xsd:element name=
"cmt" type=
"xsd:string" minOccurs=
"0">
209 GPS waypoint comment. Sent to GPS as comment.
213 <xsd:element name=
"desc" type=
"xsd:string" minOccurs=
"0">
216 A text description of the element. Holds additional information about the element intended for the user, not the GPS.
220 <xsd:element name=
"src" type=
"xsd:string" minOccurs=
"0">
223 Source of data. Included to give user some idea of reliability and accuracy of data.
"Garmin eTrex",
"USGS quad Boston North", e.g.
227 <xsd:element name=
"link" type=
"linkType" minOccurs=
"0" maxOccurs=
"unbounded">
230 Link to additional information about the waypoint.
234 <xsd:element name=
"sym" type=
"xsd:string" minOccurs=
"0">
237 Text of GPS symbol name. For interchange with other programs, use the exact spelling of the symbol as displayed on the GPS. If the GPS abbreviates words, spell them out.
241 <xsd:element name=
"type" type=
"xsd:string" minOccurs=
"0">
244 Type (classification) of the waypoint.
249 <!-- Accuracy info -->
250 <xsd:element name=
"fix" type=
"fixType" minOccurs=
"0">
257 <xsd:element name=
"sat" type=
"xsd:nonNegativeInteger" minOccurs=
"0">
260 Number of satellites used to calculate the GPX fix.
264 <xsd:element name=
"hdop" type=
"xsd:decimal" minOccurs=
"0">
267 Horizontal dilution of precision.
271 <xsd:element name=
"vdop" type=
"xsd:decimal" minOccurs=
"0">
274 Vertical dilution of precision.
278 <xsd:element name=
"pdop" type=
"xsd:decimal" minOccurs=
"0">
281 Position dilution of precision.
285 <xsd:element name=
"ageofdgpsdata" type=
"xsd:decimal" minOccurs=
"0">
288 Number of seconds since last DGPS update.
292 <xsd:element name=
"dgpsid" type=
"dgpsStationType" minOccurs=
"0">
295 ID of DGPS station used in differential correction.
300 <xsd:element name=
"extensions" type=
"extensionsType" minOccurs=
"0">
303 You can add extend GPX by adding your own elements from another schema here.
309 <xsd:attribute name=
"lat" type=
"latitudeType" use=
"required">
312 The latitude of the point. Decimal degrees, WGS84 datum.
316 <xsd:attribute name=
"lon" type=
"longitudeType" use=
"required">
319 The latitude of the point. Decimal degrees, WGS84 datum.
325 <xsd:complexType name=
"rteType">
328 rte represents route - an ordered list of waypoints representing a series of turn points leading to a destination.
332 <xsd:element name=
"name" type=
"xsd:string" minOccurs=
"0">
339 <xsd:element name=
"cmt" type=
"xsd:string" minOccurs=
"0">
342 GPS comment for route.
346 <xsd:element name=
"desc" type=
"xsd:string" minOccurs=
"0">
349 Text description of route for user. Not sent to GPS.
353 <xsd:element name=
"src" type=
"xsd:string" minOccurs=
"0">
356 Source of data. Included to give user some idea of reliability and accuracy of data.
360 <xsd:element name=
"link" type=
"linkType" minOccurs=
"0" maxOccurs=
"unbounded">
363 Links to external information about the route.
367 <xsd:element name=
"number" type=
"xsd:nonNegativeInteger" minOccurs=
"0">
374 <xsd:element name=
"type" type=
"xsd:string" minOccurs=
"0">
377 Type (classification) of route.
382 <xsd:element name=
"extensions" type=
"extensionsType" minOccurs=
"0">
385 You can add extend GPX by adding your own elements from another schema here.
390 <xsd:element name=
"rtept" type=
"wptType" minOccurs=
"0" maxOccurs=
"unbounded">
393 A list of route points.
400 <xsd:complexType name=
"trkType">
403 trk represents a track - an ordered list of points describing a path.
407 <xsd:element name=
"name" type=
"xsd:string" minOccurs=
"0">
414 <xsd:element name=
"cmt" type=
"xsd:string" minOccurs=
"0">
417 GPS comment for track.
421 <xsd:element name=
"desc" type=
"xsd:string" minOccurs=
"0">
424 User description of track.
428 <xsd:element name=
"src" type=
"xsd:string" minOccurs=
"0">
431 Source of data. Included to give user some idea of reliability and accuracy of data.
435 <xsd:element name=
"link" type=
"linkType" minOccurs=
"0" maxOccurs=
"unbounded">
438 Links to external information about track.
442 <xsd:element name=
"number" type=
"xsd:nonNegativeInteger" minOccurs=
"0">
449 <xsd:element name=
"type" type=
"xsd:string" minOccurs=
"0">
452 Type (classification) of track.
457 <xsd:element name=
"extensions" type=
"extensionsType" minOccurs=
"0">
460 You can add extend GPX by adding your own elements from another schema here.
465 <xsd:element name=
"trkseg" type=
"trksegType" minOccurs=
"0" maxOccurs=
"unbounded">
468 A Track Segment holds a list of Track Points which are logically connected in order. To represent a single GPS track where GPS reception was lost, or the GPS receiver was turned off, start a new Track Segment for each continuous span of track data.
475 <xsd:complexType name=
"extensionsType">
478 You can add extend GPX by adding your own elements from another schema here.
482 <xsd:any namespace=
"##other" processContents=
"lax" minOccurs=
"0" maxOccurs=
"unbounded">
485 You can add extend GPX by adding your own elements from another schema here.
492 <xsd:complexType name=
"trksegType">
495 A Track Segment holds a list of Track Points which are logically connected in order. To represent a single GPS track where GPS reception was lost, or the GPS receiver was turned off, start a new Track Segment for each continuous span of track data.
498 <xsd:sequence> <!-- elements must appear in this order -->
499 <xsd:element name=
"trkpt" type=
"wptType" minOccurs=
"0" maxOccurs=
"unbounded">
502 A Track Point holds the coordinates, elevation, timestamp, and metadata for a single point in a track.
507 <xsd:element name=
"extensions" type=
"extensionsType" minOccurs=
"0">
510 You can add extend GPX by adding your own elements from another schema here.
517 <xsd:complexType name=
"copyrightType">
520 Information about the copyright holder and any license governing use of this file. By linking to an appropriate license,
521 you may place your data into the public domain or grant additional usage rights.
524 <xsd:sequence> <!-- elements must appear in this order -->
525 <xsd:element name=
"year" type=
"xsd:gYear" minOccurs=
"0">
532 <xsd:element name=
"license" type=
"xsd:anyURI" minOccurs=
"0">
535 Link to external file containing license text.
540 <xsd:attribute name=
"author" type=
"xsd:string" use=
"required">
543 Copyright holder (TopoSoft, Inc.)
549 <xsd:complexType name=
"linkType">
552 A link to an external resource (Web page, digital photo, video clip, etc) with additional information.
555 <xsd:sequence> <!-- elements must appear in this order -->
556 <xsd:element name=
"text" type=
"xsd:string" minOccurs=
"0">
563 <xsd:element name=
"type" type=
"xsd:string" minOccurs=
"0">
566 Mime type of content (image/jpeg)
571 <xsd:attribute name=
"href" type=
"xsd:anyURI" use=
"required">
580 <xsd:complexType name=
"emailType">
583 An email address. Broken into two parts (id and domain) to help prevent email harvesting.
586 <xsd:attribute name=
"id" type=
"xsd:string" use=
"required">
589 id half of email address (billgates2004)
593 <xsd:attribute name=
"domain" type=
"xsd:string" use=
"required">
596 domain half of email address (hotmail.com)
602 <xsd:complexType name=
"personType">
605 A person or organization.
608 <xsd:sequence> <!-- elements must appear in this order -->
609 <xsd:element name=
"name" type=
"xsd:string" minOccurs=
"0">
612 Name of person or organization.
616 <xsd:element name=
"email" type=
"emailType" minOccurs=
"0">
623 <xsd:element name=
"link" type=
"linkType" minOccurs=
"0">
626 Link to Web site or other external information about person.
633 <xsd:complexType name=
"ptType">
636 A geographic point with optional elevation and time. Available for use by other schemas.
639 <xsd:sequence> <!-- elements must appear in this order -->
640 <xsd:element name=
"ele" type=
"xsd:decimal" minOccurs=
"0">
643 The elevation (in meters) of the point.
647 <xsd:element name=
"time" type=
"xsd:dateTime" minOccurs=
"0">
650 The time that the point was recorded.
655 <xsd:attribute name=
"lat" type=
"latitudeType" use=
"required">
658 The latitude of the point. Decimal degrees, WGS84 datum.
662 <xsd:attribute name=
"lon" type=
"longitudeType" use=
"required">
665 The latitude of the point. Decimal degrees, WGS84 datum.
671 <xsd:complexType name=
"ptsegType">
674 An ordered sequence of points. (for polygons or polylines, e.g.)
677 <xsd:sequence> <!-- elements must appear in this order -->
678 <xsd:element name=
"pt" type=
"ptType" minOccurs=
"0" maxOccurs=
"unbounded">
681 Ordered list of geographic points.
688 <xsd:complexType name=
"boundsType">
691 Two lat/lon pairs defining the extent of an element.
694 <xsd:attribute name=
"minlat" type=
"latitudeType" use=
"required">
697 The minimum latitude.
701 <xsd:attribute name=
"minlon" type=
"longitudeType" use=
"required">
704 The minimum longitude.
708 <xsd:attribute name=
"maxlat" type=
"latitudeType" use=
"required">
711 The maximum latitude.
715 <xsd:attribute name=
"maxlon" type=
"longitudeType" use=
"required">
718 The maximum longitude.
725 <xsd:simpleType name=
"latitudeType">
728 The latitude of the point. Decimal degrees, WGS84 datum.
731 <xsd:restriction base=
"xsd:decimal">
732 <xsd:minInclusive value=
"-90.0"/>
733 <xsd:maxInclusive value=
"90.0"/>
737 <xsd:simpleType name=
"longitudeType">
740 The longitude of the point. Decimal degrees, WGS84 datum.
743 <xsd:restriction base=
"xsd:decimal">
744 <xsd:minInclusive value=
"-180.0"/>
745 <xsd:maxExclusive value=
"180.0"/>
749 <xsd:simpleType name=
"degreesType">
752 Used for bearing, heading, course. Units are decimal degrees, true (not magnetic).
755 <xsd:restriction base=
"xsd:decimal">
756 <xsd:minInclusive value=
"0.0"/>
757 <xsd:maxExclusive value=
"360.0"/>
761 <xsd:simpleType name=
"fixType">
764 Type of GPS fix. none means GPS had no fix. To signify
"the fix info is unknown, leave out fixType entirely. pps = military signal used
767 <xsd:restriction base="xsd:string
">
768 <xsd:enumeration value="none
"/>
769 <xsd:enumeration value="2d
"/>
770 <xsd:enumeration value="3d
"/>
771 <xsd:enumeration value="dgps
"/>
772 <xsd:enumeration value="pps
"/>
776 <xsd:simpleType name="dgpsStationType
">
779 Represents a differential GPS station.
782 <xsd:restriction base="xsd:integer
">
783 <xsd:minInclusive value="0"/>
784 <xsd:maxInclusive value="1023"/>