bfabiszewski / ulogger-server

μlogger • web viewer for tracks uploaded with μlogger mobile client
GNU General Public License v3.0
542 stars 85 forks source link

speed information lost when importing GPX 1.0 track #139

Closed weisswieschwarz closed 3 years ago

weisswieschwarz commented 4 years ago

I recorded a track with a Garmin device and converted the recorded data to GPX 1.0. This GPX data contains the element \<speed>, which does not exist in GPX 1.1. (Each trkpt in the data contains values for latitude, longitude, elevation, time, and speed, nothing else, no extensions are used).

After importing the file to ulogger-server (1.0), the speed information is gone. I understand that the element \<speed> needs to be stripped from the data, as the data seems to be converted to GPX 1.1. But couldn't the speed values be put into \<ulogger:speed> instead of being deleted?

bfabiszewski commented 4 years ago

I created import and export functions mainly to allow for data migration between µlogger servers and to allow offline data transfer from µlogger client to server. The parser I wrote for the purpose only supports latest GPX scheme version: 1.1. The previous 1.0 scheme is deprecated and I don't want to add support for it. In order to import your file you should move <speed> tag to ulogger namespace in <extensions> tag. This should be pretty simple.