Skip to content

v0.2.47..v0.2.48 changeset OsmMapIndex.cpp

Garret Voltz edited this page Sep 27, 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 0d0e541..8844f68 100644
--- a/hoot-core/src/main/cpp/hoot/core/index/OsmMapIndex.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/index/OsmMapIndex.cpp
@@ -67,9 +67,10 @@ OsmMapIndex::OsmMapIndex(const OsmMap& map) : _map(map)
 }
 
 void OsmMapIndex::addWay(ConstWayPtr w)
-{
+{ 
   if (_nodeToWayMap != 0)
   {
+    LOG_TRACE("Adding way to index: " << w->getElementId());
     _nodeToWayMap->addWay(w);
     VALIDATE(_nodeToWayMap->validate(_map));
   }
@@ -83,6 +84,7 @@ void OsmMapIndex::addRelation(const ConstRelationPtr& r)
 {
   if (_elementToRelationMap != 0)
   {
+    LOG_TRACE("Adding relation to index: " << r->getElementId());
     _elementToRelationMap->addRelation(_map, r);
     VALIDATE(validate());
   }
@@ -186,7 +188,7 @@ void OsmMapIndex::_buildWayTree() const
 
   _wayTree->bulkInsert(boxes, ids);
 
-  LOG_INFO("Way R-Tree index built in: " << StringUtils::secondsToDhms(t.elapsed()));
+  LOG_DEBUG("Way R-Tree index built in: " << StringUtils::secondsToDhms(t.elapsed()));
 }
 
 int OsmMapIndex::_createTreeNid(long nid) const
@@ -588,7 +590,7 @@ void OsmMapIndex::postGeometryChange(Element* e)
   {
     // add all the relations that were impacted back into the index.
     for (set<long>::iterator it = _pendingRelationChange.begin();
-      it != _pendingRelationChange.end(); ++it)
+         it != _pendingRelationChange.end(); ++it)
     {
       _elementToRelationMap->addRelation(_map, _map.getRelation(*it));
     }
Clone this wiki locally