1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-30 22:51:16 +01:00

Added support for GPX 1.0 speed data

This commit is contained in:
Martin Tůma 2019-05-28 23:26:03 +02:00
parent 20956625db
commit 301172f5e8

View File

@ -118,6 +118,9 @@ void GPXParser::trackpointData(Trackpoint &trackpoint)
trackpoint.setTimestamp(time()); trackpoint.setTimestamp(time());
else if (_reader.name() == QLatin1String("geoidheight")) else if (_reader.name() == QLatin1String("geoidheight"))
gh = number(); gh = number();
// GPX 1.0
else if (_reader.name() == QLatin1String("speed"))
trackpoint.setSpeed(number());
else if (_reader.name() == QLatin1String("extensions")) else if (_reader.name() == QLatin1String("extensions"))
trkptExtensions(trackpoint); trkptExtensions(trackpoint);
else else