1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-02-22 18:20:49 +01:00

Compare commits

..

No commits in common. "9b46845568e7dc5d2ab51dad77b1de0c3e445d4b" and "779f98a206f55872e19064b33073b9bdbfa2da3e" have entirely different histories.

43 changed files with 22 additions and 52 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 884 B

After

Width:  |  Height:  |  Size: 987 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 767 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 606 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 824 B

After

Width:  |  Height:  |  Size: 747 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 822 B

After

Width:  |  Height:  |  Size: 724 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 822 B

After

Width:  |  Height:  |  Size: 724 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 976 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 810 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 863 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 821 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 918 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 821 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 792 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 724 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 942 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 909 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 764 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 826 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 825 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 791 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 989 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 989 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1018 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 824 B

After

Width:  |  Height:  |  Size: 747 B

View File

@ -64,7 +64,7 @@ public:
SegmentData segment; SegmentData segment;
}; };
static QMap<int, QString> coursePointSymbolsInit() static QMap<int, QString> coursePointDescInit()
{ {
QMap<int, QString> map; QMap<int, QString> map;
@ -76,55 +76,28 @@ static QMap<int, QString> coursePointSymbolsInit()
map.insert(6, "Left"); map.insert(6, "Left");
map.insert(7, "Right"); map.insert(7, "Right");
map.insert(8, "Straight"); map.insert(8, "Straight");
map.insert(9, "First Aid"); map.insert(9, "First aid");
map.insert(10, "Fourth Category"); map.insert(10, "Fourth category");
map.insert(11, "Third Category"); map.insert(11, "Third category");
map.insert(12, "Second Category"); map.insert(12, "Second category");
map.insert(13, "First Category"); map.insert(13, "First category");
map.insert(14, "Hors Category"); map.insert(14, "Hors category");
map.insert(15, "Sprint"); map.insert(15, "Sprint");
map.insert(16, "Left Fork"); map.insert(16, "Left fork");
map.insert(17, "Right Fork"); map.insert(17, "Right fork");
map.insert(18, "Middle Fork"); map.insert(18, "Middle fork");
map.insert(19, "Slight Left"); map.insert(19, "Slight left");
map.insert(20, "Sharp Left"); map.insert(20, "Sharp left");
map.insert(21, "Slight Right"); map.insert(21, "Slight right");
map.insert(22, "Sharp Right"); map.insert(22, "Sharp right");
map.insert(23, "U-Turn"); map.insert(23, "U-Turn");
map.insert(24, "Segment Start"); map.insert(24, "Segment start");
map.insert(25, "Segment End"); map.insert(25, "Segment end");
map.insert(27, "Campground");
map.insert(28, "Aid Station");
map.insert(29, "Rest Area");
map.insert(30, "General Distance");
map.insert(31, "Service");
map.insert(32, "Energy Gel");
map.insert(33, "Sports Drink");
map.insert(34, "Mile Marker");
map.insert(35, "Checkpoint");
map.insert(36, "Shelter");
map.insert(37, "Meeting Spot");
map.insert(38, "Overlook");
map.insert(39, "Toilet");
map.insert(40, "Shower");
map.insert(41, "Gear");
map.insert(42, "Sharp Curve");
map.insert(43, "Steep Incline");
map.insert(44, "Tunnel");
map.insert(45, "Bridge");
map.insert(46, "Obstacle");
map.insert(47, "Crossing");
map.insert(48, "Store");
map.insert(49, "Transition");
map.insert(50, "Navaid");
map.insert(51, "Transport");
map.insert(52, "Alert");
map.insert(53, "Info");
return map; return map;
} }
static QMap<int, QString> coursePointSymbols = coursePointSymbolsInit(); static QMap<int, QString> coursePointDesc = coursePointDescInit();
bool FITParser::readData(QFile *file, char *data, size_t size) bool FITParser::readData(QFile *file, char *data, size_t size)
@ -357,8 +330,8 @@ bool FITParser::parseData(CTX &ctx, const MessageDefinition *def)
} else if (def->globalId == COURSE_POINT) { } else if (def->globalId == COURSE_POINT) {
switch (field->id) { switch (field->id) {
case 1: case 1:
waypoint.setTimestamp(QDateTime::fromSecsSinceEpoch( waypoint.setTimestamp(QDateTime::fromSecsSinceEpoch(val.toUInt()
val.toUInt() + 631065600, Qt::UTC)); + 631065600, Qt::UTC));
break; break;
case 2: case 2:
waypoint.rcoordinates().setLat( waypoint.rcoordinates().setLat(
@ -369,7 +342,7 @@ bool FITParser::parseData(CTX &ctx, const MessageDefinition *def)
(val.toInt() / (double)0x7fffffff) * 180); (val.toInt() / (double)0x7fffffff) * 180);
break; break;
case 5: case 5:
waypoint.setSymbol(coursePointSymbols.value(val.toUInt())); waypoint.setDescription(coursePointDesc.value(val.toUInt()));
break; break;
case 6: case 6:
waypoint.setName(val.toString()); waypoint.setName(val.toString());
@ -413,8 +386,8 @@ bool FITParser::parseData(CTX &ctx, const MessageDefinition *def)
} }
} else if (def->globalId == RECORD_MESSAGE) { } else if (def->globalId == RECORD_MESSAGE) {
if (ctx.trackpoint.coordinates().isValid()) { if (ctx.trackpoint.coordinates().isValid()) {
ctx.trackpoint.setTimestamp(QDateTime::fromSecsSinceEpoch( ctx.trackpoint.setTimestamp(QDateTime::fromSecsSinceEpoch(ctx.timestamp
ctx.timestamp + 631065600, Qt::UTC)); + 631065600, Qt::UTC));
ctx.trackpoint.setRatio(ctx.ratio); ctx.trackpoint.setRatio(ctx.ratio);
ctx.segment.append(ctx.trackpoint); ctx.segment.append(ctx.trackpoint);
ctx.trackpoint = Trackpoint(); ctx.trackpoint = Trackpoint();

View File

@ -76,9 +76,6 @@ void GPXParser::tpExtension(Trackpoint &trackpoint)
trackpoint.setHeartRate(number()); trackpoint.setHeartRate(number());
else if (_reader.name() == QLatin1String("atemp")) else if (_reader.name() == QLatin1String("atemp"))
trackpoint.setTemperature(number()); trackpoint.setTemperature(number());
else if (_reader.name() == QLatin1String("wtemp")
&& !trackpoint.hasTemperature())
trackpoint.setTemperature(number());
else if (_reader.name() == QLatin1String("cad")) else if (_reader.name() == QLatin1String("cad"))
trackpoint.setCadence(number()); trackpoint.setCadence(number());
else if (_reader.name() == QLatin1String("speed")) else if (_reader.name() == QLatin1String("speed"))