Skip to content

v0.2.54..v0.2.55 changeset OsmApiDbSqlChangesetFileWriter.cpp

Garret Voltz edited this page Aug 14, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/io/OsmApiDbSqlChangesetFileWriter.cpp b/hoot-core/src/main/cpp/hoot/core/io/OsmApiDbSqlChangesetFileWriter.cpp
index cf11866..319612a 100644
--- a/hoot-core/src/main/cpp/hoot/core/io/OsmApiDbSqlChangesetFileWriter.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/io/OsmApiDbSqlChangesetFileWriter.cpp
@@ -152,7 +152,7 @@ void OsmApiDbSqlChangesetFileWriter::write(const QString& path,
 void OsmApiDbSqlChangesetFileWriter::_updateChangeset(const int numChanges)
 {
   //update the changeset's bounds
-  LOG_DEBUG("Updating changeset: " << _changesetBounds.toString());
+  LOG_DEBUG("Updating changeset's bounds: " << _changesetBounds.toString());
   LOG_VARD(numChanges);
   _outputSql.write(
     QString("UPDATE %1 SET min_lat=%2, max_lat=%3, min_lon=%4, max_lon=%5, num_changes=%6 WHERE id=%7;\n")
@@ -526,8 +526,8 @@ void OsmApiDbSqlChangesetFileWriter::_createTags(ConstElementPtr element)
 
     if (key.isEmpty() == false && val.isEmpty() == false)
     {
-      //  Ignore 'hoot:hash' for nodes
-      if (key == MetadataTags::HootHash() && element->getElementType() == ElementType::Node)
+      //  always ignore 'hoot:hash'
+      if (key == MetadataTags::HootHash())
         continue;
       else if (!_includeDebugTags && key.toLower().startsWith("hoot:"))
         continue;
Clone this wiki locally