Feature Request: gpx TrackPointExtension to GPSSpeed & GPSHPositioningError

Started by Marsu42, April 21, 2024, 08:53:40 PM

Previous topic - Next topic

Marsu42

After trying about every app for gpx recording on Android the popular open source OpenTracks is my favorite by far: https://opentracksapp.com/#features
https://github.com/OpenTracksApp/OpenTracks

It features multple export options, I'm using gpx for exiftoop to -xmp:geotag=log.gpx

Exiftool doesn't read (at least) two sets of data that are inside the gpx and have corresponding xml metadata tags: speed (should go to XMP-exif:Speed) and positioning error (should go to XMP-exif:GPSHPositioningError) => Could you please add these?

The source code for the gpx output with the xmlns is https://github.com/OpenTracksApp/OpenTracks/blob/main/src/main/java/de/dennisguse/opentracks/io/file/exporter/GPXTrackExporter.java

The trackpoint format of OpenTracks gpx (with my phone) is:

<trkpt lat="52.52437" lon="13.41053">
<ele>111.1</ele>
<time>2022-06-24T11:11:11.001+02:00</time>
<extensions><gpstpx:TrackPointExtension>
<gpstpx:speed>1.11</gpstpx:speed>
<opentracks:gain>0</opentracks:gain>
<opentracks:loss>0</opentracks:loss>
<opentracks:accuracy_horizontal>4</opentracks:accuracy_horizontal></gpstpx:TrackPointExtension></extensions>
</trkpt>


In case the OpenTracks gpx export is very odd, of course I could create bug ticket on github, too. At least the speed tag seems to be correct though, it moved to the extenion on gpx 1.0 => 1.1. https://logiqx.github.io/gps-wizard/gpx/

Phil Harvey

...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).