mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
Fix TrainingPeaks.com GPS data precision
.. it wasbeing lost when uploading via PWX file format because the data was not being stored with enough precision.
This commit is contained in:
@@ -622,14 +622,14 @@ PwxFileReader::writeRideFile(Context *context, const RideFile *ride, QFile &file
|
||||
// lat
|
||||
if (ride->areDataPresent()->lat && point->lat > -90.0 && point->lat < 90.0) {
|
||||
QDomElement lat = doc.createElement("lat");
|
||||
text = doc.createTextNode(QString("%1").arg(point->lat));
|
||||
text = doc.createTextNode(QString("%1").arg(point->lat, 0, 'g', 11));
|
||||
lat.appendChild(text);
|
||||
sample.appendChild(lat);
|
||||
}
|
||||
// lon
|
||||
if (ride->areDataPresent()->lon && point->lon > -180.00 && point->lon < 180.00) {
|
||||
QDomElement lon = doc.createElement("lon");
|
||||
text = doc.createTextNode(QString("%1").arg(point->lon));
|
||||
text = doc.createTextNode(QString("%1").arg(point->lon, 0, 'g', 11));
|
||||
lon.appendChild(text);
|
||||
sample.appendChild(lon);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user