Skip to content

v0.2.54..v0.2.55 changeset OsmPgCsvWriter.cpp

Garret Voltz edited this page Aug 14, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/io/OsmPgCsvWriter.cpp b/hoot-core/src/main/cpp/hoot/core/io/OsmPgCsvWriter.cpp
index eb2d0bf..d65a16d 100644
--- a/hoot-core/src/main/cpp/hoot/core/io/OsmPgCsvWriter.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/io/OsmPgCsvWriter.cpp
@@ -22,15 +22,14 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 
 #include "OsmPgCsvWriter.h"
 
 #include <hoot/core/util/ConfigOptions.h>
 #include <hoot/core/util/Factory.h>
-#include <hoot/core/elements/OsmUtils.h>
-
+#include <hoot/core/util/DateTimeUtils.h>
 #include <QFileInfo>
 
 using namespace std;
@@ -197,7 +196,7 @@ void OsmPgCsvWriter::writePartial(const hoot::ConstNodePtr& n)
       << QString::number(n->getX(), 'f', _precision) << _separator
       << n->getChangeset() << _separator
       << (n->getVisible() ? 't' : 'f') << _separator
-      << (n->getTimestamp() != ElementData::TIMESTAMP_EMPTY ? OsmUtils::toTimeString(n->getTimestamp()) : "") << _separator
+      << (n->getTimestamp() != ElementData::TIMESTAMP_EMPTY ? DateTimeUtils::toTimeString(n->getTimestamp()) : "") << _separator
       << n->getVersion() << _separator
       << _getTags(n) << _endl;
 }
@@ -209,7 +208,7 @@ void OsmPgCsvWriter::writePartial(const hoot::ConstWayPtr& w)
   _streams[FileType::Ways]
       << w->getId() << _separator
       << w->getChangeset() << _separator
-      << (w->getTimestamp() != ElementData::TIMESTAMP_EMPTY ? OsmUtils::toTimeString(w->getTimestamp()) : "") << _separator
+      << (w->getTimestamp() != ElementData::TIMESTAMP_EMPTY ? DateTimeUtils::toTimeString(w->getTimestamp()) : "") << _separator
       << w->getVersion() << _separator
       << (w->getVisible() ? 't' : 'f') << _separator
       << _getTags(w) << _endl;
@@ -232,7 +231,7 @@ void OsmPgCsvWriter::writePartial(const hoot::ConstRelationPtr& r)
   _streams[FileType::Relations]
       << r->getId() << _separator
       << r->getChangeset() << _separator
-      << (r->getTimestamp() != ElementData::TIMESTAMP_EMPTY ? OsmUtils::toTimeString(r->getTimestamp()) : "") << _separator
+      << (r->getTimestamp() != ElementData::TIMESTAMP_EMPTY ? DateTimeUtils::toTimeString(r->getTimestamp()) : "") << _separator
       << r->getVersion() << _separator
       << (r->getVisible() ? 't' : 'f') << _separator
       << _getTags(r) << _endl;
Clone this wiki locally