1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.topografix.com/GPX/1/1" targetNamespace="http://www.topografix.com/GPX/1/1" elementFormDefault="qualified">
6 GPX schema version 1.1 - For more information on GPX and this schema, visit http://www.topografix.com/gpx.asp
8 GPX uses the following conventions: all coordinates are relative to the WGS84 datum. All measurements are in metric units.
12 <xsd:element name="gpx" type="gpxType">
15 GPX is the root element in the XML file.
20 <xsd:complexType name="gpxType">
23 GPX documents contain a metadata header, followed by waypoints, routes, and tracks. You can add your own elements
24 to the extensions section of the GPX document.
28 <xsd:element name="metadata" type="metadataType" minOccurs="0">
31 Metadata about the file.
35 <xsd:element name="wpt" type="wptType" minOccurs="0" maxOccurs="unbounded">
42 <xsd:element name="rte" type="rteType" minOccurs="0" maxOccurs="unbounded">
49 <xsd:element name="trk" type="trkType" minOccurs="0" maxOccurs="unbounded">
56 <xsd:element name="extensions" type="extensionsType" minOccurs="0">
59 You can add extend GPX by adding your own elements from another schema here.
65 <xsd:attribute name="version" type="xsd:string" use="required" fixed="1.1">
68 You must include the version number in your GPX document.
72 <xsd:attribute name="creator" type="xsd:string" use="required">
75 You must include the name or URL of the software that created your GPX document. This allows others to
76 inform the creator of a GPX instance document that fails to validate.
82 <xsd:complexType name="metadataType">
85 Information about the GPX file, author, and copyright restrictions goes in the metadata section. Providing rich,
86 meaningful information about your GPX files allows others to search for and use your GPS data.
89 <xsd:sequence> <!-- elements must appear in this order -->
90 <xsd:element name="name" type="xsd:string" minOccurs="0">
93 The name of the GPX file.
97 <xsd:element name="desc" type="xsd:string" minOccurs="0">
100 A description of the contents of the GPX file.
104 <xsd:element name="author" type="personType" minOccurs="0">
107 The person or organization who created the GPX file.
111 <xsd:element name="copyright" type="copyrightType" minOccurs="0">
114 Copyright and license information governing use of the file.
118 <xsd:element name="link" type="linkType" minOccurs="0" maxOccurs="unbounded">
121 URLs associated with the location described in the file.
125 <xsd:element name="time" type="xsd:dateTime" minOccurs="0">
128 The creation date of the file.
132 <xsd:element name="keywords" type="xsd:string" minOccurs="0">
135 Keywords associated with the file. Search engines or databases can use this information to classify the data.
139 <xsd:element name="bounds" type="boundsType" minOccurs="0">
142 Minimum and maximum coordinates which describe the extent of the coordinates in the file.
147 <xsd:element name="extensions" type="extensionsType" minOccurs="0">
150 You can add extend GPX by adding your own elements from another schema here.
157 <xsd:complexType name="wptType">
160 wpt represents a waypoint, point of interest, or named feature on a map.
163 <xsd:sequence> <!-- elements must appear in this order -->
164 <!-- Position info -->
165 <xsd:element name="ele" type="xsd:decimal" minOccurs="0">
168 Elevation (in meters) of the point.
172 <xsd:element name="time" type="xsd:dateTime" minOccurs="0">
175 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.
179 <xsd:element name="magvar" type="degreesType" minOccurs="0">
182 Magnetic variation (in degrees) at the point
186 <xsd:element name="geoidheight" type="xsd:decimal" minOccurs="0">
189 Height (in meters) of geoid (mean sea level) above WGS84 earth ellipsoid. As defined in NMEA GGA message.
194 <!-- Description info -->
195 <xsd:element name="name" type="xsd:string" minOccurs="0">
198 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.
202 <xsd:element name="cmt" type="xsd:string" minOccurs="0">
205 GPS waypoint comment. Sent to GPS as comment.
209 <xsd:element name="desc" type="xsd:string" minOccurs="0">
212 A text description of the element. Holds additional information about the element intended for the user, not the GPS.
216 <xsd:element name="src" type="xsd:string" minOccurs="0">
219 Source of data. Included to give user some idea of reliability and accuracy of data. "Garmin eTrex", "USGS quad Boston North", e.g.
223 <xsd:element name="link" type="linkType" minOccurs="0" maxOccurs="unbounded">
226 Link to additional information about the waypoint.
230 <xsd:element name="sym" type="xsd:string" minOccurs="0">
233 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.
237 <xsd:element name="type" type="xsd:string" minOccurs="0">
240 Type (classification) of the waypoint.
245 <!-- Accuracy info -->
246 <xsd:element name="fix" type="fixType" minOccurs="0">
253 <xsd:element name="sat" type="xsd:nonNegativeInteger" minOccurs="0">
256 Number of satellites used to calculate the GPX fix.
260 <xsd:element name="hdop" type="xsd:decimal" minOccurs="0">
263 Horizontal dilution of precision.
267 <xsd:element name="vdop" type="xsd:decimal" minOccurs="0">
270 Vertical dilution of precision.
274 <xsd:element name="pdop" type="xsd:decimal" minOccurs="0">
277 Position dilution of precision.
281 <xsd:element name="ageofdgpsdata" type="xsd:decimal" minOccurs="0">
284 Number of seconds since last DGPS update.
288 <xsd:element name="dgpsid" type="dgpsStationType" minOccurs="0">
291 ID of DGPS station used in differential correction.
296 <xsd:element name="extensions" type="extensionsType" minOccurs="0">
299 You can add extend GPX by adding your own elements from another schema here.
305 <xsd:attribute name="lat" type="latitudeType" use="required">
308 The latitude of the point. Decimal degrees, WGS84 datum.
312 <xsd:attribute name="lon" type="longitudeType" use="required">
315 The latitude of the point. Decimal degrees, WGS84 datum.
321 <xsd:complexType name="rteType">
324 rte represents route - an ordered list of waypoints representing a series of turn points leading to a destination.
328 <xsd:element name="name" type="xsd:string" minOccurs="0">
335 <xsd:element name="cmt" type="xsd:string" minOccurs="0">
338 GPS comment for route.
342 <xsd:element name="desc" type="xsd:string" minOccurs="0">
345 Text description of route for user. Not sent to GPS.
349 <xsd:element name="src" type="xsd:string" minOccurs="0">
352 Source of data. Included to give user some idea of reliability and accuracy of data.
356 <xsd:element name="link" type="linkType" minOccurs="0" maxOccurs="unbounded">
359 Links to external information about the route.
363 <xsd:element name="number" type="xsd:nonNegativeInteger" minOccurs="0">
370 <xsd:element name="type" type="xsd:string" minOccurs="0">
373 Type (classification) of route.
378 <xsd:element name="extensions" type="extensionsType" minOccurs="0">
381 You can add extend GPX by adding your own elements from another schema here.
386 <xsd:element name="rtept" type="wptType" minOccurs="0" maxOccurs="unbounded">
389 A list of route points.
396 <xsd:complexType name="trkType">
399 trk represents a track - an ordered list of points describing a path.
403 <xsd:element name="name" type="xsd:string" minOccurs="0">
410 <xsd:element name="cmt" type="xsd:string" minOccurs="0">
413 GPS comment for track.
417 <xsd:element name="desc" type="xsd:string" minOccurs="0">
420 User description of track.
424 <xsd:element name="src" type="xsd:string" minOccurs="0">
427 Source of data. Included to give user some idea of reliability and accuracy of data.
431 <xsd:element name="link" type="linkType" minOccurs="0" maxOccurs="unbounded">
434 Links to external information about track.
438 <xsd:element name="number" type="xsd:nonNegativeInteger" minOccurs="0">
445 <xsd:element name="type" type="xsd:string" minOccurs="0">
448 Type (classification) of track.
453 <xsd:element name="extensions" type="extensionsType" minOccurs="0">
456 You can add extend GPX by adding your own elements from another schema here.
461 <xsd:element name="trkseg" type="trksegType" minOccurs="0" maxOccurs="unbounded">
464 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.
471 <xsd:complexType name="extensionsType">
474 You can add extend GPX by adding your own elements from another schema here.
478 <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded">
481 You can add extend GPX by adding your own elements from another schema here.
488 <xsd:complexType name="trksegType">
491 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.
494 <xsd:sequence> <!-- elements must appear in this order -->
495 <xsd:element name="trkpt" type="wptType" minOccurs="0" maxOccurs="unbounded">
498 A Track Point holds the coordinates, elevation, timestamp, and metadata for a single point in a track.
503 <xsd:element name="extensions" type="extensionsType" minOccurs="0">
506 You can add extend GPX by adding your own elements from another schema here.
513 <xsd:complexType name="copyrightType">
516 Information about the copyright holder and any license governing use of this file. By linking to an appropriate license,
517 you may place your data into the public domain or grant additional usage rights.
520 <xsd:sequence> <!-- elements must appear in this order -->
521 <xsd:element name="year" type="xsd:gYear" minOccurs="0">
528 <xsd:element name="license" type="xsd:anyURI" minOccurs="0">
531 Link to external file containing license text.
536 <xsd:attribute name="author" type="xsd:string" use="required">
539 Copyright holder (TopoSoft, Inc.)
545 <xsd:complexType name="linkType">
548 A link to an external resource (Web page, digital photo, video clip, etc) with additional information.
551 <xsd:sequence> <!-- elements must appear in this order -->
552 <xsd:element name="text" type="xsd:string" minOccurs="0">
559 <xsd:element name="type" type="xsd:string" minOccurs="0">
562 Mime type of content (image/jpeg)
567 <xsd:attribute name="href" type="xsd:anyURI" use="required">
576 <xsd:complexType name="emailType">
579 An email address. Broken into two parts (id and domain) to help prevent email harvesting.
582 <xsd:attribute name="id" type="xsd:string" use="required">
585 id half of email address (billgates2004)
589 <xsd:attribute name="domain" type="xsd:string" use="required">
592 domain half of email address (hotmail.com)
598 <xsd:complexType name="personType">
601 A person or organization.
604 <xsd:sequence> <!-- elements must appear in this order -->
605 <xsd:element name="name" type="xsd:string" minOccurs="0">
608 Name of person or organization.
612 <xsd:element name="email" type="emailType" minOccurs="0">
619 <xsd:element name="link" type="linkType" minOccurs="0">
622 Link to Web site or other external information about person.
629 <xsd:complexType name="ptType">
632 A geographic point with optional elevation and time. Available for use by other schemas.
635 <xsd:sequence> <!-- elements must appear in this order -->
636 <xsd:element name="ele" type="xsd:decimal" minOccurs="0">
639 The elevation (in meters) of the point.
643 <xsd:element name="time" type="xsd:dateTime" minOccurs="0">
646 The time that the point was recorded.
651 <xsd:attribute name="lat" type="latitudeType" use="required">
654 The latitude of the point. Decimal degrees, WGS84 datum.
658 <xsd:attribute name="lon" type="longitudeType" use="required">
661 The latitude of the point. Decimal degrees, WGS84 datum.
667 <xsd:complexType name="ptsegType">
670 An ordered sequence of points. (for polygons or polylines, e.g.)
673 <xsd:sequence> <!-- elements must appear in this order -->
674 <xsd:element name="pt" type="ptType" minOccurs="0" maxOccurs="unbounded">
677 Ordered list of geographic points.
684 <xsd:complexType name="boundsType">
687 Two lat/lon pairs defining the extent of an element.
690 <xsd:attribute name="minlat" type="latitudeType" use="required">
693 The minimum latitude.
697 <xsd:attribute name="minlon" type="longitudeType" use="required">
700 The minimum longitude.
704 <xsd:attribute name="maxlat" type="latitudeType" use="required">
707 The maximum latitude.
711 <xsd:attribute name="maxlon" type="longitudeType" use="required">
714 The maximum longitude.
721 <xsd:simpleType name="latitudeType">
724 The latitude of the point. Decimal degrees, WGS84 datum.
727 <xsd:restriction base="xsd:decimal">
728 <xsd:minInclusive value="-90.0"/>
729 <xsd:maxInclusive value="90.0"/>
733 <xsd:simpleType name="longitudeType">
736 The longitude of the point. Decimal degrees, WGS84 datum.
739 <xsd:restriction base="xsd:decimal">
740 <xsd:minInclusive value="-180.0"/>
741 <xsd:maxExclusive value="180.0"/>
745 <xsd:simpleType name="degreesType">
748 Used for bearing, heading, course. Units are decimal degrees, true (not magnetic).
751 <xsd:restriction base="xsd:decimal">
752 <xsd:minInclusive value="0.0"/>
753 <xsd:maxExclusive value="360.0"/>
757 <xsd:simpleType name="fixType">
760 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
763 <xsd:restriction base="xsd:string">
764 <xsd:enumeration value="none"/>
765 <xsd:enumeration value="2d"/>
766 <xsd:enumeration value="3d"/>
767 <xsd:enumeration value="dgps"/>
768 <xsd:enumeration value="pps"/>
772 <xsd:simpleType name="dgpsStationType">
775 Represents a differential GPS station.
778 <xsd:restriction base="xsd:integer">
779 <xsd:minInclusive value="0"/>
780 <xsd:maxInclusive value="1023"/>