Skip to content

v0.2.49..v0.2.50 changeset OsmMapIndex.cpp

Garret Voltz edited this page Nov 6, 2019 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/index/OsmMapIndex.cpp b/hoot-core/src/main/cpp/hoot/core/index/OsmMapIndex.cpp
index 8844f68..00f7351 100644
--- a/hoot-core/src/main/cpp/hoot/core/index/OsmMapIndex.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/index/OsmMapIndex.cpp
@@ -131,11 +131,15 @@ void OsmMapIndex::_buildNodeTree() const
   _pendingNodeInsert.clear();
   _pendingNodeRemoval.clear();
 
-  LOG_INFO("  Bulk inserting Node R-Tree...");
+  LOG_INFO("\tBulk inserting Node R-Tree...");
+
+  // If this takes a very long time, you can uncomment out the cout statements in HilbertRTree to
+  // get a better idea of how longs its going to take.
 
   _nodeTree->bulkInsert(boxes, ids);
 
-  LOG_INFO("  Node R-Tree index built. Time elapsed: " << StringUtils::secondsToDhms(t.elapsed()));
+  LOG_INFO(
+    "\tNode R-Tree index built. Time elapsed: " << StringUtils::millisecondsToDhms(t.elapsed()));
 }
 
 void OsmMapIndex::_buildWayTree() const
@@ -188,7 +192,7 @@ void OsmMapIndex::_buildWayTree() const
 
   _wayTree->bulkInsert(boxes, ids);
 
-  LOG_DEBUG("Way R-Tree index built in: " << StringUtils::secondsToDhms(t.elapsed()));
+  LOG_DEBUG("Way R-Tree index built in: " << StringUtils::millisecondsToDhms(t.elapsed()));
 }
 
 int OsmMapIndex::_createTreeNid(long nid) const
@@ -430,6 +434,7 @@ std::shared_ptr<NodeToWayMap> OsmMapIndex::getNodeToWayMap() const
 {
   if (_nodeToWayMap == 0)
   {
+    LOG_TRACE("Initializing node to way map...");
     _nodeToWayMap.reset(new NodeToWayMap(_map));
   }
   return _nodeToWayMap;
Clone this wiki locally