Skip to content

v0.2.47..v0.2.48 changeset OsmMapWriterFactory.cpp

Garret Voltz edited this page Sep 27, 2019 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/io/OsmMapWriterFactory.cpp b/hoot-core/src/main/cpp/hoot/core/io/OsmMapWriterFactory.cpp
index b2ca05c..dc305b0 100644
--- a/hoot-core/src/main/cpp/hoot/core/io/OsmMapWriterFactory.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/io/OsmMapWriterFactory.cpp
@@ -158,8 +158,14 @@ void OsmMapWriterFactory::writeDebugMap(const ConstOsmMapPtr& map, const QString
     QString debugMapFileName = ConfigOptions().getDebugMapsFilename();
     if (!debugMapFileName.toLower().endsWith(".osm"))
     {
-      throw IllegalArgumentException("Debug maps must be written to a .osm file.");
+      throw IllegalArgumentException("Debug maps must be written to an .osm file.");
     }
+
+    LOG_VARD(StringUtils::formatLargeNumber(map->getElementCount()));
+    LOG_VARD(StringUtils::formatLargeNumber(map->getNodeCount()));
+    LOG_VARD(StringUtils::formatLargeNumber(map->getWayCount()));
+    LOG_VARD(StringUtils::formatLargeNumber(map->getRelationCount()));
+
     const QString fileNumberStr = StringUtils::getNumberStringPaddedWithZeroes(_debugMapCount, 3);
     if (!title.isEmpty())
     {
@@ -170,7 +176,7 @@ void OsmMapWriterFactory::writeDebugMap(const ConstOsmMapPtr& map, const QString
     {
       debugMapFileName = debugMapFileName.replace(".osm", "-" + fileNumberStr + ".osm");
     }
-    LOG_DEBUG("Writing debug output to " << debugMapFileName);
+    LOG_DEBUG("Writing debug output to: " << debugMapFileName);
     OsmMapPtr copy(new OsmMap(map));
 
     if (matcher)
Clone this wiki locally