diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2018-06-06 20:30:48 +0300 |
---|---|---|
committer | mpimenov <mpimenov@users.noreply.github.com> | 2018-06-19 19:11:12 +0300 |
commit | cf2ee50beb9c20f8539b86af4385c395248076de (patch) | |
tree | e59be7c9dc3e7037bb6862188f930d7fe91cd846 /track_analyzing | |
parent | d0a304286ffa51ca5837122c4638ddbbac9e9b21 (diff) |
Review fixes.
Diffstat (limited to 'track_analyzing')
-rw-r--r-- | track_analyzing/track_analyzer/cmd_unmatched_tracks.cpp | 5 | ||||
-rw-r--r-- | track_analyzing/track_analyzer/track_analyzer.cpp | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/track_analyzing/track_analyzer/cmd_unmatched_tracks.cpp b/track_analyzing/track_analyzer/cmd_unmatched_tracks.cpp index c741aa1e2c..ab5a24389a 100644 --- a/track_analyzing/track_analyzer/cmd_unmatched_tracks.cpp +++ b/track_analyzing/track_analyzer/cmd_unmatched_tracks.cpp @@ -24,14 +24,15 @@ void CmdUnmatchedTracks(string const & logFile, string const & trackFileCsv) MwmToTracks mwmToTracks; ParseTracks(logFile, numMwmIds, storage, mwmToTracks); + string const sep = ","; ofstream ofs(trackFileCsv, std::ofstream::out); for (auto const & kv : mwmToTracks) { for (auto const & idTrack : kv.second) { - ofs << numMwmIds->GetFile(kv.first).GetName() << ", " << idTrack.first; + ofs << numMwmIds->GetFile(kv.first).GetName() << sep << idTrack.first; for (auto const & pnt : idTrack.second) - ofs << ", " << pnt.m_timestamp << ", " << pnt.m_latLon.lat << ", " << pnt.m_latLon.lon; + ofs << sep << pnt.m_timestamp << sep << pnt.m_latLon.lat << sep << pnt.m_latLon.lon; ofs << "\n"; } } diff --git a/track_analyzing/track_analyzer/track_analyzer.cpp b/track_analyzing/track_analyzer/track_analyzer.cpp index b3b12ffdc9..92e7065217 100644 --- a/track_analyzing/track_analyzer/track_analyzer.cpp +++ b/track_analyzing/track_analyzer/track_analyzer.cpp @@ -26,8 +26,8 @@ namespace DEFINE_string_ext(cmd, "", "command:\n" "match - based on raw logs gathers points to tracks and matches them to " - "features. To use the tool raw logs should be taken from \"trafin\" project " - "production in gz files and extracted.\n" + "features. To use the tool raw logs should be taken from \"trafin\" production " + "project in gz files and extracted.\n" "unmatched_tracks - based on raw logs gathers points to tracks\n" "and save tracks to csv. Track points save as lat, log, timestamp in seconds\n" "tracks - prints track statistics\n" |