mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-13 12:42:20 +00:00
RouteParser - Use 11 significant digits for lat/lon (#4849)
To match how lat/lon are stored in JSON files increasing precision on route discovery.
This commit is contained in:
committed by
GitHub
parent
1675464d47
commit
20ebbfdd9b
@@ -127,7 +127,8 @@ RouteParser::serialize(QString filename, QList<RouteSegment>routes)
|
||||
out << "\t\t<points>\n";
|
||||
//qDebug() << "route->getPoints() " << route.getPoints().count();
|
||||
foreach (RoutePoint point, route.getPoints() ) {
|
||||
out << QString("\t\t\t<point><lat>%1</lat><lon>%2</lon></point>\n").arg(point.lat).arg(point.lon);
|
||||
out << QString("\t\t\t<point><lat>%1</lat><lon>%2</lon></point>\n").arg(point.lat, 0, 'g', 11)
|
||||
.arg(point.lon, 0, 'g', 11);
|
||||
}
|
||||
out << "\t\t</points>\n";
|
||||
out <<QString("\t</route>\n");
|
||||
|
||||
Reference in New Issue
Block a user