Skip to content

v0.2.48..v0.2.49 changeset PoiCriterion.cpp

Garret Voltz edited this page Oct 2, 2019 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/criterion/PoiCriterion.cpp b/hoot-core/src/main/cpp/hoot/core/criterion/PoiCriterion.cpp
index bcd67df..307ff38 100644
--- a/hoot-core/src/main/cpp/hoot/core/criterion/PoiCriterion.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/criterion/PoiCriterion.cpp
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2015, 2017, 2018 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2015, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
  */
 #include "PoiCriterion.h"
 
@@ -30,6 +30,7 @@
 #include <hoot/core/util/Factory.h>
 #include <hoot/core/schema/OsmSchema.h>
 #include <hoot/core/elements/Element.h>
+#include <hoot/core/util/Log.h>
 
 namespace hoot
 {
@@ -38,6 +39,8 @@ HOOT_FACTORY_REGISTER(ElementCriterion, PoiCriterion)
 
 bool PoiCriterion::isSatisfied(const ConstElementPtr& e) const
 {
+  LOG_VART(e);
+
   bool result = false;
 
   // we consider all point features with a name, or part of the explicitly defined point category
@@ -49,6 +52,10 @@ bool PoiCriterion::isSatisfied(const ConstElementPtr& e) const
       e->getTags().getNames().size() > 0;
   }
 
+  if (result)
+  {
+    LOG_TRACE("crit satisfied");
+  }
   return result;
 }
 
Clone this wiki locally