-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.gpx
81 lines (71 loc) · 5.63 KB
/
test.gpx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<gpx creator="" xmlns="http://www.topografix.com/GPX/1/1" xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1" version="1.1" 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">
<metadata>
<name><![CDATA[GPXconv test data]]></name>
<desc><![CDATA[can be used as given in test.sh]]></desc>
<link href="https://github.com/DDvO/GPXConv">
<text>GPXconv test data<value>101</value><value>102</value></text>
</link>
<time>2001-01-01T10:00:01Z</time><bounds minlat="44.00001" minlon="2.00001" maxlat="45.99998" maxlon="8.20001"/>
<extensions><value>101</value><value>102</value></extensions>
<extensions>in metadata second extension, which is not really allowed but supported here;
newlines are kept</extensions>
</metadata>
<wpt lat="44.000015" lon="2.280015"><ele>-99</ele><time>2001-01-01T00:00:00Z</time>
<name><![CDATA[0001234]]></name><cmt>this automatic wpt will be pruned by default</cmt><desc><![CDATA[<p><br /><h3>Name: WP1</h3>]]></desc><sym>Waypoint</sym><type>Starting Point</type>
<extensions><om:oruxmapsextensions xmlns:om="http://www.oruxmaps.com/oruxmapsextensions/1/0"><om:ext type="ICON" subtype="0">15</om:ext></om:oruxmapsextensions></extensions>
</wpt>
<wpt lat="45.90" lon="4.30"><ele>490</ele><time>2001-01-02T15Z</time>
<name><![CDATA[non-auto]]></name><cmt>wpt comment</cmt><link>wpt link</link><sym>Waypoint</sym><type>Test Point</type>
<extensions><om:oruxmapsextensions xmlns:om="http://www.oruxmaps.com/oruxmapsextensions/1/0"><om:ext type="ICON" subtype="0">15</om:ext></om:oruxmapsextensions></extensions>
</wpt>
<trk>
<name><![CDATA[2001-01-01..02_test]]></name>
<cmt>trk comment</cmt>
<desc><![CDATA[<p>Original start time: 01/01/2001 00:00<br/>Original finish time: 01/01/2001 18:30<br/>Distance: 76.9 km (08:30)]]></desc>
<link>trk link</link>
<type>Driving</type>
<extensions>
<om:oruxmapsextensions xmlns:om="http://www.oruxmaps.com/oruxmapsextensions/1/0">
<om:ext type="TYPE" subtype="0">17</om:ext>
<om:ext type="DIFFICULTY">0</om:ext>
</om:oruxmapsextensions>
</extensions>
<trkseg>
<trkpt lat="44.000015" lon="2.280015"><cmt>for some reason, lat gets rounded down to 44.00001, lon upwards to 2.2801; initially no elevation and time, no possibility to carry them over</cmt></trkpt>
<trkpt lat="44.00002" lon="2.00003"><ele>74.49</ele>
<extensions><value>101</value></extensions>
<extensions><value>102</value> in trkpt second extension, which is not really allowed but supported here</extensions></trkpt>
<trkpt lat="44.000" lon="2.004"><ele>50.00</ele><time>2001-01-01T10Z</time><cmt>descent is not counted because it is less than 25</cmt></trkpt>
<extensions>trkseg extension gets ignored</extensions>
</trkseg>
<trkseg>
<trkpt lat="44" lon="2"><cmt>ele=50.00 and time=2001-01-01T10:00:00Z to be carried over from previous segment</cmt></trkpt>
<trkpt lat="44" lon="2.0"> <cmt>elevation 40 and time 2001-01-01T10:30:00Z to be interpolated</cmt></trkpt>
<trkpt lat="44" lon="2.00"> <time>2001-01-01T11:00:00Z</time><cmt>elevation 30 to be interpolated; time gap too short to be filled</cmt></trkpt>
<trkpt lat="44" lon="2.000"><ele>20.00</ele><time>2001-01-01T11:30Z</time><cmt>first descent that is counted: -30</cmt></trkpt>
<trkpt lat="44" lon="2.0000"> <ele>50.00</ele><cmt>time 2001-01-01T11:40:00Z to be interpolated; first ascent 30</cmt></trkpt>
<trkpt lat="44" lon="2.00000"><cmt>ele=-10 and time=2001-01-01T12:00:00Z to be carried over from next segment; second descent -60</cmt><extensions><keep_before_speed></keep_before_speed></extensions></trkpt>
</trkseg>
</trk>
<trk>
<trkseg>
<trkpt lat="45.50" lon="3.50"><ele>-10</ele><time>2001-01-01T12:00Z</time></trkpt>
<trkpt lat="45.60" lon="3.52"><cmt>can carry over elevation but not time from begin of next segment</cmt></trkpt>
</trkseg>
<trkseg>
<trkpt lat="45.70" lon="4.10"><ele>-10</ele><cmt>better not automatically carry over elevation -10 from last available value in segment before; no possibility to carry over time, so no time gap to be filled</cmt></trkpt>
<trkpt lat="45.799956"lon="4.20"><cmt>iterpolated elevation 40.000, no time</cmt></trkpt>
<trkpt lat="45.90" lon="4.30"><ele>90</ele><time>2001-01-02T15:00:00Z</time><cmt>second ascent 100</cmt></trkpt>
</trkseg>
<trkseg>
<trkpt lat="-0.045" lon="0"><ele>500</ele><time>2001-01-02T16:00:00Z</time><cmt>no ascent/descent due to singleton segment; 1 hour time gap before, so 1 point would be inserted (and optionally 2 duplicated), but linear speed would be too high</cmt></trkpt>
</trkseg>
<trkseg>
<trkpt lat="-0.009" lon="0"><ele>500</ele><time>2001-01-02T18:00:00Z</time><cmt>2 hours time gap before, so 3 points to be inserted (but by default not 2 duplicated); gpxtpx:speed to be ignored</cmt><extensions><speed>10</speed><keep_after_speed></keep_after_speed><gpxtpx:TrackPointExtension><gpxtpx:speed>11</gpxtpx:speed></gpxtpx:TrackPointExtension></extensions></trkpt>
<trkpt lat= "0.000" lon="0"><ele>525</ele><time>2001-01-02T18:30:01Z</time><cmt>a bit more than 0.5 hour time gap before, so point to be inserted; third ascent should be counted: 25; all given speed to be ignored except for plausibility check</cmt><extensions><speed>20</speed><gpxtpx:TrackPointExtension><gpxtpx:speed>10</gpxtpx:speed></gpxtpx:TrackPointExtension></extensions></trkpt>
<trkpt lat= "0.009" lon="0"><cmt>at the end no elevation and time</cmt><extensions><gpxtpx:TrackPointExtension><gpxtpx:some>text</gpxtpx:some></gpxtpx:TrackPointExtension></extensions></trkpt>
</trkseg>
</trk>
<extensions>gpx extension gets ignored</extensions>
</gpx>