]> git.street.me.uk Git - andy/gpx.git/blame - src/libgpx/gpx-1-1.xsd
Fix: PeakStream fails to function correctly after the first file
[andy/gpx.git] / src / libgpx / gpx-1-1.xsd
CommitLineData
8fadecc6
AS
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">
3
4<xsd:annotation>
5 <xsd:documentation>
6 GPX schema version 1.1 - For more information on GPX and this schema, visit http://www.topografix.com/gpx.asp
7
8 GPX uses the following conventions: all coordinates are relative to the WGS84 datum. All measurements are in metric units.
9 </xsd:documentation>
10</xsd:annotation>
11
12 <xsd:element name="gpx" type="gpxType">
13 <xsd:annotation>
14 <xsd:documentation>
15 GPX is the root element in the XML file.
16 </xsd:documentation>
17 </xsd:annotation>
18 </xsd:element>
19
20 <xsd:complexType name="gpxType">
21 <xsd:annotation>
22 <xsd:documentation>
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.
25 </xsd:documentation>
26 </xsd:annotation>
27 <xsd:sequence>
28 <xsd:element name="metadata" type="metadataType" minOccurs="0">
29 <xsd:annotation>
30 <xsd:documentation>
31 Metadata about the file.
32 </xsd:documentation>
33 </xsd:annotation>
34 </xsd:element>
35 <xsd:element name="wpt" type="wptType" minOccurs="0" maxOccurs="unbounded">
36 <xsd:annotation>
37 <xsd:documentation>
38 A list of waypoints.
39 </xsd:documentation>
40 </xsd:annotation>
41 </xsd:element>
42 <xsd:element name="rte" type="rteType" minOccurs="0" maxOccurs="unbounded">
43 <xsd:annotation>
44 <xsd:documentation>
45 A list of routes.
46 </xsd:documentation>
47 </xsd:annotation>
48 </xsd:element>
49 <xsd:element name="trk" type="trkType" minOccurs="0" maxOccurs="unbounded">
50 <xsd:annotation>
51 <xsd:documentation>
52 A list of tracks.
53 </xsd:documentation>
54 </xsd:annotation>
55 </xsd:element>
56 <xsd:element name="extensions" type="extensionsType" minOccurs="0">
57 <xsd:annotation>
58 <xsd:documentation>
59 You can add extend GPX by adding your own elements from another schema here.
60 </xsd:documentation>
61 </xsd:annotation>
62 </xsd:element>
63 </xsd:sequence>
64
65 <xsd:attribute name="version" type="xsd:string" use="required" fixed="1.1">
66 <xsd:annotation>
67 <xsd:documentation>
68 You must include the version number in your GPX document.
69 </xsd:documentation>
70 </xsd:annotation>
71 </xsd:attribute>
72 <xsd:attribute name="creator" type="xsd:string" use="required">
73 <xsd:annotation>
74 <xsd:documentation>
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.
77 </xsd:documentation>
78 </xsd:annotation>
79 </xsd:attribute>
80 </xsd:complexType>
81
82 <xsd:complexType name="metadataType">
83 <xsd:annotation>
84 <xsd:documentation>
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.
87 </xsd:documentation>
88 </xsd:annotation>
89 <xsd:sequence> <!-- elements must appear in this order -->
90 <xsd:element name="name" type="xsd:string" minOccurs="0">
91 <xsd:annotation>
92 <xsd:documentation>
93 The name of the GPX file.
94 </xsd:documentation>
95 </xsd:annotation>
96 </xsd:element>
97 <xsd:element name="desc" type="xsd:string" minOccurs="0">
98 <xsd:annotation>
99 <xsd:documentation>
100 A description of the contents of the GPX file.
101 </xsd:documentation>
102 </xsd:annotation>
103 </xsd:element>
104 <xsd:element name="author" type="personType" minOccurs="0">
105 <xsd:annotation>
106 <xsd:documentation>
107 The person or organization who created the GPX file.
108 </xsd:documentation>
109 </xsd:annotation>
110 </xsd:element>
111 <xsd:element name="copyright" type="copyrightType" minOccurs="0">
112 <xsd:annotation>
113 <xsd:documentation>
114 Copyright and license information governing use of the file.
115 </xsd:documentation>
116 </xsd:annotation>
117 </xsd:element>
118 <xsd:element name="link" type="linkType" minOccurs="0" maxOccurs="unbounded">
119 <xsd:annotation>
120 <xsd:documentation>
121 URLs associated with the location described in the file.
122 </xsd:documentation>
123 </xsd:annotation>
124 </xsd:element>
125 <xsd:element name="time" type="xsd:dateTime" minOccurs="0">
126 <xsd:annotation>
127 <xsd:documentation>
128 The creation date of the file.
129 </xsd:documentation>
130 </xsd:annotation>
131 </xsd:element>
132 <xsd:element name="keywords" type="xsd:string" minOccurs="0">
133 <xsd:annotation>
134 <xsd:documentation>
135 Keywords associated with the file. Search engines or databases can use this information to classify the data.
136 </xsd:documentation>
137 </xsd:annotation>
138 </xsd:element>
139 <xsd:element name="bounds" type="boundsType" minOccurs="0">
140 <xsd:annotation>
141 <xsd:documentation>
142 Minimum and maximum coordinates which describe the extent of the coordinates in the file.
143 </xsd:documentation>
144 </xsd:annotation>
145 </xsd:element>
146
147 <xsd:element name="extensions" type="extensionsType" minOccurs="0">
148 <xsd:annotation>
149 <xsd:documentation>
150 You can add extend GPX by adding your own elements from another schema here.
151 </xsd:documentation>
152 </xsd:annotation>
153 </xsd:element>
154 </xsd:sequence>
155 </xsd:complexType>
156
157 <xsd:complexType name="wptType">
158 <xsd:annotation>
159 <xsd:documentation>
160 wpt represents a waypoint, point of interest, or named feature on a map.
161 </xsd:documentation>
162 </xsd:annotation>
163 <xsd:sequence> <!-- elements must appear in this order -->
164 <!-- Position info -->
165 <xsd:element name="ele" type="xsd:decimal" minOccurs="0">
166 <xsd:annotation>
167 <xsd:documentation>
168 Elevation (in meters) of the point.
169 </xsd:documentation>
170 </xsd:annotation>
171 </xsd:element>
172 <xsd:element name="time" type="xsd:dateTime" minOccurs="0">
173 <xsd:annotation>
174 <xsd:documentation>
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.
176 </xsd:documentation>
177 </xsd:annotation>
178 </xsd:element>
179 <xsd:element name="magvar" type="degreesType" minOccurs="0">
180 <xsd:annotation>
181 <xsd:documentation>
182 Magnetic variation (in degrees) at the point
183 </xsd:documentation>
184 </xsd:annotation>
185 </xsd:element>
186 <xsd:element name="geoidheight" type="xsd:decimal" minOccurs="0">
187 <xsd:annotation>
188 <xsd:documentation>
189 Height (in meters) of geoid (mean sea level) above WGS84 earth ellipsoid. As defined in NMEA GGA message.
190 </xsd:documentation>
191 </xsd:annotation>
192 </xsd:element>
193
194 <!-- Description info -->
195 <xsd:element name="name" type="xsd:string" minOccurs="0">
196 <xsd:annotation>
197 <xsd:documentation>
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.
199 </xsd:documentation>
200 </xsd:annotation>
201 </xsd:element>
202 <xsd:element name="cmt" type="xsd:string" minOccurs="0">
203 <xsd:annotation>
204 <xsd:documentation>
205 GPS waypoint comment. Sent to GPS as comment.
206 </xsd:documentation>
207 </xsd:annotation>
208 </xsd:element>
209 <xsd:element name="desc" type="xsd:string" minOccurs="0">
210 <xsd:annotation>
211 <xsd:documentation>
212 A text description of the element. Holds additional information about the element intended for the user, not the GPS.
213 </xsd:documentation>
214 </xsd:annotation>
215 </xsd:element>
216 <xsd:element name="src" type="xsd:string" minOccurs="0">
217 <xsd:annotation>
218 <xsd:documentation>
219 Source of data. Included to give user some idea of reliability and accuracy of data. "Garmin eTrex", "USGS quad Boston North", e.g.
220 </xsd:documentation>
221 </xsd:annotation>
222 </xsd:element>
223 <xsd:element name="link" type="linkType" minOccurs="0" maxOccurs="unbounded">
224 <xsd:annotation>
225 <xsd:documentation>
226 Link to additional information about the waypoint.
227 </xsd:documentation>
228 </xsd:annotation>
229 </xsd:element>
230 <xsd:element name="sym" type="xsd:string" minOccurs="0">
231 <xsd:annotation>
232 <xsd:documentation>
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.
234 </xsd:documentation>
235 </xsd:annotation>
236 </xsd:element>
237 <xsd:element name="type" type="xsd:string" minOccurs="0">
238 <xsd:annotation>
239 <xsd:documentation>
240 Type (classification) of the waypoint.
241 </xsd:documentation>
242 </xsd:annotation>
243 </xsd:element>
244
245 <!-- Accuracy info -->
246 <xsd:element name="fix" type="fixType" minOccurs="0">
247 <xsd:annotation>
248 <xsd:documentation>
249 Type of GPX fix.
250 </xsd:documentation>
251 </xsd:annotation>
252 </xsd:element>
253 <xsd:element name="sat" type="xsd:nonNegativeInteger" minOccurs="0">
254 <xsd:annotation>
255 <xsd:documentation>
256 Number of satellites used to calculate the GPX fix.
257 </xsd:documentation>
258 </xsd:annotation>
259 </xsd:element>
260 <xsd:element name="hdop" type="xsd:decimal" minOccurs="0">
261 <xsd:annotation>
262 <xsd:documentation>
263 Horizontal dilution of precision.
264 </xsd:documentation>
265 </xsd:annotation>
266 </xsd:element>
267 <xsd:element name="vdop" type="xsd:decimal" minOccurs="0">
268 <xsd:annotation>
269 <xsd:documentation>
270 Vertical dilution of precision.
271 </xsd:documentation>
272 </xsd:annotation>
273 </xsd:element>
274 <xsd:element name="pdop" type="xsd:decimal" minOccurs="0">
275 <xsd:annotation>
276 <xsd:documentation>
277 Position dilution of precision.
278 </xsd:documentation>
279 </xsd:annotation>
280 </xsd:element>
281 <xsd:element name="ageofdgpsdata" type="xsd:decimal" minOccurs="0">
282 <xsd:annotation>
283 <xsd:documentation>
284 Number of seconds since last DGPS update.
285 </xsd:documentation>
286 </xsd:annotation>
287 </xsd:element>
288 <xsd:element name="dgpsid" type="dgpsStationType" minOccurs="0">
289 <xsd:annotation>
290 <xsd:documentation>
291 ID of DGPS station used in differential correction.
292 </xsd:documentation>
293 </xsd:annotation>
294 </xsd:element>
295
296 <xsd:element name="extensions" type="extensionsType" minOccurs="0">
297 <xsd:annotation>
298 <xsd:documentation>
299 You can add extend GPX by adding your own elements from another schema here.
300 </xsd:documentation>
301 </xsd:annotation>
302 </xsd:element>
303 </xsd:sequence>
304
305 <xsd:attribute name="lat" type="latitudeType" use="required">
306 <xsd:annotation>
307 <xsd:documentation>
308 The latitude of the point. This is always in decimal degrees, and always in WGS84 datum.
309 </xsd:documentation>
310 </xsd:annotation>
311 </xsd:attribute>
312 <xsd:attribute name="lon" type="longitudeType" use="required">
313 <xsd:annotation>
314 <xsd:documentation>
315 The longitude of the point. This is always in decimal degrees, and always in WGS84 datum.
316 </xsd:documentation>
317 </xsd:annotation>
318 </xsd:attribute>
319 </xsd:complexType>
320
321 <xsd:complexType name="rteType">
322 <xsd:annotation>
323 <xsd:documentation>
324 rte represents route - an ordered list of waypoints representing a series of turn points leading to a destination.
325 </xsd:documentation>
326 </xsd:annotation>
327 <xsd:sequence>
328 <xsd:element name="name" type="xsd:string" minOccurs="0">
329 <xsd:annotation>
330 <xsd:documentation>
331 GPS name of route.
332 </xsd:documentation>
333 </xsd:annotation>
334 </xsd:element>
335 <xsd:element name="cmt" type="xsd:string" minOccurs="0">
336 <xsd:annotation>
337 <xsd:documentation>
338 GPS comment for route.
339 </xsd:documentation>
340 </xsd:annotation>
341 </xsd:element>
342 <xsd:element name="desc" type="xsd:string" minOccurs="0">
343 <xsd:annotation>
344 <xsd:documentation>
345 Text description of route for user. Not sent to GPS.
346 </xsd:documentation>
347 </xsd:annotation>
348 </xsd:element>
349 <xsd:element name="src" type="xsd:string" minOccurs="0">
350 <xsd:annotation>
351 <xsd:documentation>
352 Source of data. Included to give user some idea of reliability and accuracy of data.
353 </xsd:documentation>
354 </xsd:annotation>
355 </xsd:element>
356 <xsd:element name="link" type="linkType" minOccurs="0" maxOccurs="unbounded">
357 <xsd:annotation>
358 <xsd:documentation>
359 Links to external information about the route.
360 </xsd:documentation>
361 </xsd:annotation>
362 </xsd:element>
363 <xsd:element name="number" type="xsd:nonNegativeInteger" minOccurs="0">
364 <xsd:annotation>
365 <xsd:documentation>
366 GPS route number.
367 </xsd:documentation>
368 </xsd:annotation>
369 </xsd:element>
370 <xsd:element name="type" type="xsd:string" minOccurs="0">
371 <xsd:annotation>
372 <xsd:documentation>
373 Type (classification) of route.
374 </xsd:documentation>
375 </xsd:annotation>
376 </xsd:element>
377
378 <xsd:element name="extensions" type="extensionsType" minOccurs="0">
379 <xsd:annotation>
380 <xsd:documentation>
381 You can add extend GPX by adding your own elements from another schema here.
382 </xsd:documentation>
383 </xsd:annotation>
384 </xsd:element>
385
386 <xsd:element name="rtept" type="wptType" minOccurs="0" maxOccurs="unbounded">
387 <xsd:annotation>
388 <xsd:documentation>
389 A list of route points.
390 </xsd:documentation>
391 </xsd:annotation>
392 </xsd:element>
393 </xsd:sequence>
394 </xsd:complexType>
395
396 <xsd:complexType name="trkType">
397 <xsd:annotation>
398 <xsd:documentation>
399 trk represents a track - an ordered list of points describing a path.
400 </xsd:documentation>
401 </xsd:annotation>
402 <xsd:sequence>
403 <xsd:element name="name" type="xsd:string" minOccurs="0">
404 <xsd:annotation>
405 <xsd:documentation>
406 GPS name of track.
407 </xsd:documentation>
408 </xsd:annotation>
409 </xsd:element>
410 <xsd:element name="cmt" type="xsd:string" minOccurs="0">
411 <xsd:annotation>
412 <xsd:documentation>
413 GPS comment for track.
414 </xsd:documentation>
415 </xsd:annotation>
416 </xsd:element>
417 <xsd:element name="desc" type="xsd:string" minOccurs="0">
418 <xsd:annotation>
419 <xsd:documentation>
420 User description of track.
421 </xsd:documentation>
422 </xsd:annotation>
423 </xsd:element>
424 <xsd:element name="src" type="xsd:string" minOccurs="0">
425 <xsd:annotation>
426 <xsd:documentation>
427 Source of data. Included to give user some idea of reliability and accuracy of data.
428 </xsd:documentation>
429 </xsd:annotation>
430 </xsd:element>
431 <xsd:element name="link" type="linkType" minOccurs="0" maxOccurs="unbounded">
432 <xsd:annotation>
433 <xsd:documentation>
434 Links to external information about track.
435 </xsd:documentation>
436 </xsd:annotation>
437 </xsd:element>
438 <xsd:element name="number" type="xsd:nonNegativeInteger" minOccurs="0">
439 <xsd:annotation>
440 <xsd:documentation>
441 GPS track number.
442 </xsd:documentation>
443 </xsd:annotation>
444 </xsd:element>
445 <xsd:element name="type" type="xsd:string" minOccurs="0">
446 <xsd:annotation>
447 <xsd:documentation>
448 Type (classification) of track.
449 </xsd:documentation>
450 </xsd:annotation>
451 </xsd:element>
452
453 <xsd:element name="extensions" type="extensionsType" minOccurs="0">
454 <xsd:annotation>
455 <xsd:documentation>
456 You can add extend GPX by adding your own elements from another schema here.
457 </xsd:documentation>
458 </xsd:annotation>
459 </xsd:element>
460
461 <xsd:element name="trkseg" type="trksegType" minOccurs="0" maxOccurs="unbounded">
462 <xsd:annotation>
463 <xsd:documentation>
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.
465 </xsd:documentation>
466 </xsd:annotation>
467 </xsd:element>
468 </xsd:sequence>
469 </xsd:complexType>
470
471 <xsd:complexType name="extensionsType">
472 <xsd:annotation>
473 <xsd:documentation>
474 You can add extend GPX by adding your own elements from another schema here.
475 </xsd:documentation>
476 </xsd:annotation>
477 <xsd:sequence>
478 <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded">
479 <xsd:annotation>
480 <xsd:documentation>
481 You can add extend GPX by adding your own elements from another schema here.
482 </xsd:documentation>
483 </xsd:annotation>
484 </xsd:any>
485 </xsd:sequence>
486 </xsd:complexType>
487
488 <xsd:complexType name="trksegType">
489 <xsd:annotation>
490 <xsd:documentation>
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.
492 </xsd:documentation>
493 </xsd:annotation>
494 <xsd:sequence> <!-- elements must appear in this order -->
495 <xsd:element name="trkpt" type="wptType" minOccurs="0" maxOccurs="unbounded">
496 <xsd:annotation>
497 <xsd:documentation>
498 A Track Point holds the coordinates, elevation, timestamp, and metadata for a single point in a track.
499 </xsd:documentation>
500 </xsd:annotation>
501 </xsd:element>
502
503 <xsd:element name="extensions" type="extensionsType" minOccurs="0">
504 <xsd:annotation>
505 <xsd:documentation>
506 You can add extend GPX by adding your own elements from another schema here.
507 </xsd:documentation>
508 </xsd:annotation>
509 </xsd:element>
510 </xsd:sequence>
511 </xsd:complexType>
512
513 <xsd:complexType name="copyrightType">
514 <xsd:annotation>
515 <xsd:documentation>
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.
518 </xsd:documentation>
519 </xsd:annotation>
520 <xsd:sequence> <!-- elements must appear in this order -->
521 <xsd:element name="year" type="xsd:gYear" minOccurs="0">
522 <xsd:annotation>
523 <xsd:documentation>
524 Year of copyright.
525 </xsd:documentation>
526 </xsd:annotation>
527 </xsd:element>
528 <xsd:element name="license" type="xsd:anyURI" minOccurs="0">
529 <xsd:annotation>
530 <xsd:documentation>
531 Link to external file containing license text.
532 </xsd:documentation>
533 </xsd:annotation>
534 </xsd:element>
535 </xsd:sequence>
536 <xsd:attribute name="author" type="xsd:string" use="required">
537 <xsd:annotation>
538 <xsd:documentation>
539 Copyright holder (TopoSoft, Inc.)
540 </xsd:documentation>
541 </xsd:annotation>
542 </xsd:attribute>
543 </xsd:complexType>
544
545 <xsd:complexType name="linkType">
546 <xsd:annotation>
547 <xsd:documentation>
548 A link to an external resource (Web page, digital photo, video clip, etc) with additional information.
549 </xsd:documentation>
550 </xsd:annotation>
551 <xsd:sequence> <!-- elements must appear in this order -->
552 <xsd:element name="text" type="xsd:string" minOccurs="0">
553 <xsd:annotation>
554 <xsd:documentation>
555 Text of hyperlink.
556 </xsd:documentation>
557 </xsd:annotation>
558 </xsd:element>
559 <xsd:element name="type" type="xsd:string" minOccurs="0">
560 <xsd:annotation>
561 <xsd:documentation>
562 Mime type of content (image/jpeg)
563 </xsd:documentation>
564 </xsd:annotation>
565 </xsd:element>
566 </xsd:sequence>
567 <xsd:attribute name="href" type="xsd:anyURI" use="required">
568 <xsd:annotation>
569 <xsd:documentation>
570 URL of hyperlink.
571 </xsd:documentation>
572 </xsd:annotation>
573 </xsd:attribute>
574 </xsd:complexType>
575
576 <xsd:complexType name="emailType">
577 <xsd:annotation>
578 <xsd:documentation>
579 An email address. Broken into two parts (id and domain) to help prevent email harvesting.
580 </xsd:documentation>
581 </xsd:annotation>
582 <xsd:attribute name="id" type="xsd:string" use="required">
583 <xsd:annotation>
584 <xsd:documentation>
585 id half of email address (billgates2004)
586 </xsd:documentation>
587 </xsd:annotation>
588 </xsd:attribute>
589 <xsd:attribute name="domain" type="xsd:string" use="required">
590 <xsd:annotation>
591 <xsd:documentation>
592 domain half of email address (hotmail.com)
593 </xsd:documentation>
594 </xsd:annotation>
595 </xsd:attribute>
596 </xsd:complexType>
597
598 <xsd:complexType name="personType">
599 <xsd:annotation>
600 <xsd:documentation>
601 A person or organization.
602 </xsd:documentation>
603 </xsd:annotation>
604 <xsd:sequence> <!-- elements must appear in this order -->
605 <xsd:element name="name" type="xsd:string" minOccurs="0">
606 <xsd:annotation>
607 <xsd:documentation>
608 Name of person or organization.
609 </xsd:documentation>
610 </xsd:annotation>
611 </xsd:element>
612 <xsd:element name="email" type="emailType" minOccurs="0">
613 <xsd:annotation>
614 <xsd:documentation>
615 Email address.
616 </xsd:documentation>
617 </xsd:annotation>
618 </xsd:element>
619 <xsd:element name="link" type="linkType" minOccurs="0">
620 <xsd:annotation>
621 <xsd:documentation>
622 Link to Web site or other external information about person.
623 </xsd:documentation>
624 </xsd:annotation>
625 </xsd:element>
626 </xsd:sequence>
627 </xsd:complexType>
628
629 <xsd:complexType name="ptType">
630 <xsd:annotation>
631 <xsd:documentation>
632 A geographic point with optional elevation and time. Available for use by other schemas.
633 </xsd:documentation>
634 </xsd:annotation>
635 <xsd:sequence> <!-- elements must appear in this order -->
636 <xsd:element name="ele" type="xsd:decimal" minOccurs="0">
637 <xsd:annotation>
638 <xsd:documentation>
639 The elevation (in meters) of the point.
640 </xsd:documentation>
641 </xsd:annotation>
642 </xsd:element>
643 <xsd:element name="time" type="xsd:dateTime" minOccurs="0">
644 <xsd:annotation>
645 <xsd:documentation>
646 The time that the point was recorded.
647 </xsd:documentation>
648 </xsd:annotation>
649 </xsd:element>
650 </xsd:sequence>
651 <xsd:attribute name="lat" type="latitudeType" use="required">
652 <xsd:annotation>
653 <xsd:documentation>
654 The latitude of the point. Decimal degrees, WGS84 datum.
655 </xsd:documentation>
656 </xsd:annotation>
657 </xsd:attribute>
658 <xsd:attribute name="lon" type="longitudeType" use="required">
659 <xsd:annotation>
660 <xsd:documentation>
661 The latitude of the point. Decimal degrees, WGS84 datum.
662 </xsd:documentation>
663 </xsd:annotation>
664 </xsd:attribute>
665 </xsd:complexType>
666
667 <xsd:complexType name="ptsegType">
668 <xsd:annotation>
669 <xsd:documentation>
670 An ordered sequence of points. (for polygons or polylines, e.g.)
671 </xsd:documentation>
672 </xsd:annotation>
673 <xsd:sequence> <!-- elements must appear in this order -->
674 <xsd:element name="pt" type="ptType" minOccurs="0" maxOccurs="unbounded">
675 <xsd:annotation>
676 <xsd:documentation>
677 Ordered list of geographic points.
678 </xsd:documentation>
679 </xsd:annotation>
680 </xsd:element>
681 </xsd:sequence>
682 </xsd:complexType>
683
684 <xsd:complexType name="boundsType">
685 <xsd:annotation>
686 <xsd:documentation>
687 Two lat/lon pairs defining the extent of an element.
688 </xsd:documentation>
689 </xsd:annotation>
690 <xsd:attribute name="minlat" type="latitudeType" use="required">
691 <xsd:annotation>
692 <xsd:documentation>
693 The minimum latitude.
694 </xsd:documentation>
695 </xsd:annotation>
696 </xsd:attribute>
697 <xsd:attribute name="minlon" type="longitudeType" use="required">
698 <xsd:annotation>
699 <xsd:documentation>
700 The minimum longitude.
701 </xsd:documentation>
702 </xsd:annotation>
703 </xsd:attribute>
704 <xsd:attribute name="maxlat" type="latitudeType" use="required">
705 <xsd:annotation>
706 <xsd:documentation>
707 The maximum latitude.
708 </xsd:documentation>
709 </xsd:annotation>
710 </xsd:attribute>
711 <xsd:attribute name="maxlon" type="longitudeType" use="required">
712 <xsd:annotation>
713 <xsd:documentation>
714 The maximum longitude.
715 </xsd:documentation>
716 </xsd:annotation>
717 </xsd:attribute>
718 </xsd:complexType>
719
720
721 <xsd:simpleType name="latitudeType">
722 <xsd:annotation>
723 <xsd:documentation>
724 The latitude of the point. Decimal degrees, WGS84 datum.
725 </xsd:documentation>
726 </xsd:annotation>
727 <xsd:restriction base="xsd:decimal">
728 <xsd:minInclusive value="-90.0"/>
729 <xsd:maxInclusive value="90.0"/>
730 </xsd:restriction>
731 </xsd:simpleType>
732
733 <xsd:simpleType name="longitudeType">
734 <xsd:annotation>
735 <xsd:documentation>
736 The longitude of the point. Decimal degrees, WGS84 datum.
737 </xsd:documentation>
738 </xsd:annotation>
739 <xsd:restriction base="xsd:decimal">
740 <xsd:minInclusive value="-180.0"/>
741 <xsd:maxExclusive value="180.0"/>
742 </xsd:restriction>
743 </xsd:simpleType>
744
745 <xsd:simpleType name="degreesType">
746 <xsd:annotation>
747 <xsd:documentation>
748 Used for bearing, heading, course. Units are decimal degrees, true (not magnetic).
749 </xsd:documentation>
750 </xsd:annotation>
751 <xsd:restriction base="xsd:decimal">
752 <xsd:minInclusive value="0.0"/>
753 <xsd:maxExclusive value="360.0"/>
754 </xsd:restriction>
755 </xsd:simpleType>
756
757 <xsd:simpleType name="fixType">
758 <xsd:annotation>
759 <xsd:documentation>
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
761 </xsd:documentation>
762 </xsd:annotation>
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"/>
769 </xsd:restriction>
770 </xsd:simpleType>
771
772 <xsd:simpleType name="dgpsStationType">
773 <xsd:annotation>
774 <xsd:documentation>
775 Represents a differential GPS station.
776 </xsd:documentation>
777 </xsd:annotation>
778 <xsd:restriction base="xsd:integer">
779 <xsd:minInclusive value="0"/>
780 <xsd:maxInclusive value="1023"/>
781 </xsd:restriction>
782 </xsd:simpleType>
783
784</xsd:schema>