normalise angles only if an improvement

This commit is contained in:
Moritz Kobitzsch
2017-10-20 15:57:51 +02:00
parent e965cf12f8
commit 23fd27422b
3 changed files with 37 additions and 14 deletions
+3
View File
@@ -2,6 +2,7 @@
#define OSRM_GEOJSON_DEBUG_LOGGER_HPP
#include <fstream>
#include <iomanip>
#include <mutex>
#include <string>
@@ -105,6 +106,8 @@ class GeojsonLogger
std::lock_guard<std::mutex> guard(lock);
ofs.open(logfile, std::ios::binary);
ofs << std::setprecision(12);
// set up a feature collection
ofs << "{\n\t\"type\": \"FeatureCollection\",\n\t\"features\": [\n\t";
// remember whether we need to output a colon