DBViewer: fixed kml export disabled for poses when there are gps values. Fixed commas used instead of dots for float in kml export on french machine.

This commit is contained in:
matlabbe
2022-02-27 15:20:02 -05:00
parent 53e0099dd8
commit f140e99881
2 changed files with 9 additions and 3 deletions

View File

@@ -523,7 +523,10 @@ bool exportGPS(
std::string values;
for(std::map<int, GPS>::const_iterator iter=gpsValues.begin(); iter!=gpsValues.end(); ++iter)
{
values += uFormat("%f,%f,%f ", iter->second.longitude(), iter->second.latitude(), iter->second.altitude());
values += uFormat("%s,%s,%s ",
uReplaceChar(uNumber2Str(iter->second.longitude()), ',', '.').c_str(),
uReplaceChar(uNumber2Str(iter->second.latitude()), ',', '.').c_str(),
uReplaceChar(uNumber2Str(iter->second.altitude()), ',', '.').c_str());
}
// switch argb (Qt format) -> abgr