Skip to content

v0.2.47..v0.2.48 changeset HighwayCriterion.cpp

Garret Voltz edited this page Sep 27, 2019 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/criterion/HighwayCriterion.cpp b/hoot-core/src/main/cpp/hoot/core/criterion/HighwayCriterion.cpp
index 2e7c6f9..7a46de2 100644
--- a/hoot-core/src/main/cpp/hoot/core/criterion/HighwayCriterion.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/criterion/HighwayCriterion.cpp
@@ -40,7 +40,7 @@ HOOT_FACTORY_REGISTER(ElementCriterion, HighwayCriterion)
 
 bool HighwayCriterion::isSatisfied(const ConstElementPtr& element) const
 {
-  //LOG_VART(element->getElementId());
+  LOG_VART(element->getElementId());
   bool result = false;
   const Tags& tags = element->getTags();
   const ElementType type = element->getElementType();
@@ -51,12 +51,14 @@ bool HighwayCriterion::isSatisfied(const ConstElementPtr& element) const
       it != tags.end() && it.value() != "")
   {
     result = true;
+    LOG_VART(result);
   }
   //  Make sure it isn't a building or a part of a building
   else if (_map && (BuildingCriterion(_map).isSatisfied(element) ||
                     BuildingCriterion(_map).isParentABuilding(element->getElementId())))
   {
     result = false;
+    LOG_VART(result);
   }
   else
   {
@@ -66,14 +68,17 @@ bool HighwayCriterion::isSatisfied(const ConstElementPtr& element) const
     {
       // We can treat it like a highway
       result = true;
+      LOG_VART(result);
     }
   }
   // Make sure this isn't an area highway section!
   if (result)
   {
     result = !AreaCriterion().isSatisfied(element);
+    LOG_VART(result);
   }
 
+  LOG_VART(result);
   return result;
 }
 
Clone this wiki locally