diff --git a/hoot-core/src/main/cpp/hoot/core/criterion/BuildingCriterion.cpp b/hoot-core/src/main/cpp/hoot/core/criterion/BuildingCriterion.cpp
index 78380d1..65a0cbe 100644
--- a/hoot-core/src/main/cpp/hoot/core/criterion/BuildingCriterion.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/criterion/BuildingCriterion.cpp
@@ -79,8 +79,10 @@ bool BuildingCriterion::isSatisfied(const ConstElementPtr& e) const
bool result = false;
// if it is a building
+
LOG_VART(e->getElementType() == ElementType::Node);
LOG_VART(OsmSchema::getInstance().hasCategory(e->getTags(), "building"));
+
if ((e->getElementType() != ElementType::Node) &&
(OsmSchema::getInstance().hasCategory(e->getTags(), "building") == true))
{
@@ -94,6 +96,7 @@ bool BuildingCriterion::isSatisfied(const ConstElementPtr& e) const
// see ticket #5952. If the building has a parent relation that is also a building then this
// is really a building part, not a building.
result = true;
+ LOG_VART(result);
}
}
@@ -104,6 +107,10 @@ bool BuildingCriterion::isSatisfied(const Tags& tags, const ElementType& element
{
// There's no option to check the parent in this method, since doing so would require an element
// ID and callers call this method, because they don't have it in certain circumstances.
+
+ LOG_VART(elementType);
+ LOG_VART(OsmSchema::getInstance().hasCategory(tags, "building"));
+
return
elementType != ElementType::Node && OsmSchema::getInstance().hasCategory(tags, "building");
}