-
Notifications
You must be signed in to change notification settings - Fork 55
Closed
Labels
Description
I am using Opentracks to record my running sessions.
Opentracks allows export to GPX, which I try to import in Sportstracker for analysis on my desktop.
The import fails. The console says:
2023-08-30 22:02:42 SEVERE de.saring.exerciseviewer.gui.EVMain showExercise Failed to open exercise file /home/martin/Downloads/OpenTracks-Backup.gpx!
de.saring.exerciseviewer.core.EVException: Failed to read the TopoGrafix GPX exercise file '/home/martin/Downloads/OpenTracks-Backup.gpx'!
And later on:
Caused by: java.time.format.DateTimeParseException: Text '2023-04-09T10:44:08.037+02:00' could not be parsed, unparsed text found at index 23
This can be found at line 34 of the GPX file. The following snippet starts with the first line and ends at line 34:
<?xml version="1.0" encoding="UTF-8"?>
<gpx
version="1.1"
creator="OpenTracks"
xmlns="http://www.topografix.com/GPX/1/1"
xmlns:topografix="http://www.topografix.com/GPX/Private/TopoGrafix/0/1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:opentracks="http://opentracksapp.com/xmlschemas/v1"
xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v2"
xmlns:gpxtrkx="http://www.garmin.com/xmlschemas/TrackStatsExtension/v1"
xmlns:cluetrust="http://www.cluetrust.com/Schemas/"
xmlns:pwr="http://www.garmin.com/xmlschemas/PowerExtension/v1"
xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.topografix.com/GPX/Private/TopoGrafix/0/1 http://www.topografix.com/GPX/Private/TopoGrafix/0/1/topografix.xsd http://www.garmin.com/xmlschemas/TrackPointExtension/v2 https://www8.garmin.com/xmlschemas/TrackPointExtensionv2.xsd http://www.garmin.com/xmlschemas/PowerExtension/v1 https://www8.garmin.com/xmlschemas/PowerExtensionv1.xsd http://www.garmin.com/xmlschemas/TrackStatsExtension/v1 http://www.cluetrust.com/Schemas http://www.cluetrust.com/Schemas/gpxdata10.xsd http://opentracksapp.com/xmlschemas/v1 http://opentracksapp.com/xmlschemas/OpenTracks_v1.xsd">
<trk>
<name><![CDATA[2023-04-09T10:44+02]]></name>
<desc><![CDATA[]]></desc>
<type><![CDATA[hardlopen]]></type>
<extensions>
<topografix:color>c0c0c0</topografix:color>
<opentracks:trackid>5ec98da5-697e-4179-9119-c874cda8ac09</opentracks:trackid>
<gpxtrkx:TrackStatsExtension>
<gpxtrkx:Distance>2370.517578125</gpxtrkx:Distance>
<gpxtrkx:TimerTime>1118</gpxtrkx:TimerTime>
<gpxtrkx:MovingTime>1083</gpxtrkx:MovingTime>
<gpxtrkx:StoppedTime>35</gpxtrkx:StoppedTime>
<gpxtrkx:MaxSpeed>2.830949306488037</gpxtrkx:MaxSpeed>
<gpxtrkx:Ascent>51.0</gpxtrkx:Ascent>
<gpxtrkx:Descent>51.0</gpxtrkx:Descent>
</gpxtrkx:TrackStatsExtension>
</extensions>
<trkseg>
<trkpt lat="52.####" lon="5.####">
<ele>47.3</ele>
<time>2023-04-09T10:44:08.037+02:00</time>
Index 23 is the semicolon after 44.
I have compiled sportstracker 7.9.1 manually on my Suse Tumbleweed desktop using OpenJDK-17.