This object is in archive! 
Invalid GPX 1.1 export
Solved
So since Garmin start validate files i can't upload to GarminConnect or use it in Garmin VIRB
- <trkpt lat="30.964341" lon="10.293287">
- <ele>82.99</ele>
- <time>2014-08-15T19:04:52Z</time>
- <pdop>30.00</pdop>
- <extensions>
- <gpxtpx:TrackPointExtension>
- <gpxtpx:cad>46</gpxtpx:cad>
- <gpxtpx:course>37.5</gpxtpx:course>
- <gpxtpx:hr>105</gpxtpx:hr>
- <gpxtpx:speed>4.132248</gpxtpx:speed>
- </gpxtpx:TrackPointExtension>
- </extensions>
- </trkpt>
http://www8.garmin.com/xmlschemas/TrackPointExtensionv1.xsd
As you can see the TrackPointExtension type has another sequence and elements like course, speed are absent, they only allowed in Extensions.
- <trkpt lat="30.964341" lon="10.293287">
- <ele>82.99</ele>
- <time>2014-08-15T19:04:52Z</time>
- <pdop>30.00</pdop>
- <extensions>
- <gpxtpx:TrackPointExtension>
- <gpxtpx:hr>105</gpxtpx:hr>
- <gpxtpx:cad>46</gpxtpx:cad>
- <gpxtpx:Extensions>
- <course>37.5</course>
- <speed>4.132248</speed>
- </gpxtpx:Extensions>
- </gpxtpx:TrackPointExtension>
- </extensions>
- </trkpt>
Please don't ignore this, it's simple to fix.
1) Locus using 1st version of TrackPointExtension xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1"
but the elements speed, cource was added only in 2nd version
"http://www.garmin.com/xmlschemas/TrackPointExtension/v2"
2) TrackPointExtension is a sequence, so the order of elements is significant
<xsd:sequence>
<xsd:element name="atemp" type="DegreesCelsius_t" minOccurs="0"/><xsd:element name="wtemp" type="DegreesCelsius_t" minOccurs="0"/><xsd:element name="depth" type="Meters_t" minOccurs="0"/><xsd:element name="hr" type="BeatsPerMinute_t" minOccurs="0"/><xsd:element name="cad" type="RevolutionsPerMinute_t" minOccurs="0"/><xsd:element name="speed" type="MetersPerSecond_t" minOccurs="0"/><xsd:element name="course" type="DegreesTrue_t" minOccurs="0"/><xsd:element name="bearing" type="DegreesTrue_t" minOccurs="0"/><xsd:element name="Extensions" type="Extensions_t" minOccurs="0"/>
</xsd:sequence>
Please don't ignore this, it's simple to fix.
1) Locus using 1st version of TrackPointExtension xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1"
but the elements speed, cource was added only in 2nd version
"http://www.garmin.com/xmlschemas/TrackPointExtension/v2"
2) TrackPointExtension is a sequence, so the order of elements is significant
<xsd:sequence>
<xsd:element name="atemp" type="DegreesCelsius_t" minOccurs="0"/><xsd:element name="wtemp" type="DegreesCelsius_t" minOccurs="0"/><xsd:element name="depth" type="Meters_t" minOccurs="0"/><xsd:element name="hr" type="BeatsPerMinute_t" minOccurs="0"/><xsd:element name="cad" type="RevolutionsPerMinute_t" minOccurs="0"/><xsd:element name="speed" type="MetersPerSecond_t" minOccurs="0"/><xsd:element name="course" type="DegreesTrue_t" minOccurs="0"/><xsd:element name="bearing" type="DegreesTrue_t" minOccurs="0"/><xsd:element name="Extensions" type="Extensions_t" minOccurs="0"/>
</xsd:sequence>
And is battery temp. is available to save as atemp ?
And is battery temp. is available to save as atemp ?
Hello Pole,
so best solution for me, seems to be change of TrackPointExtension to version 2 in header and adding atemp (only from external sensors), hr, cad, speed and course in this order to <gpxtpx:TrackPointExtension> tags, right? Oki, done.
Hello Pole,
so best solution for me, seems to be change of TrackPointExtension to version 2 in header and adding atemp (only from external sensors), hr, cad, speed and course in this order to <gpxtpx:TrackPointExtension> tags, right? Oki, done.
thnx
thnx
Replies have been locked on this page!