Skip to content

v0.2.48..v0.2.49 changeset BuildingCriterion.h

Garret Voltz edited this page Oct 2, 2019 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/criterion/BuildingCriterion.h b/hoot-core/src/main/cpp/hoot/core/criterion/BuildingCriterion.h
index 90e2b07..4dcb2e5 100644
--- a/hoot-core/src/main/cpp/hoot/core/criterion/BuildingCriterion.h
+++ b/hoot-core/src/main/cpp/hoot/core/criterion/BuildingCriterion.h
@@ -53,8 +53,8 @@ public:
 
   bool isSatisfied(const Tags& tags, const ElementType& elementType) const;
 
-  virtual ConflatableGeometryType getGeometryType() const
-  { return ConflatableGeometryType::Polygon; }
+  virtual GeometryType getGeometryType() const
+  { return GeometryType::Polygon; }
 
   virtual void setOsmMap(const OsmMap* map) { _map = map->shared_from_this(); }
 
@@ -62,6 +62,9 @@ public:
 
   virtual QString getDescription() const { return "Identifies buildings"; }
 
+  virtual QString toString() const override
+  { return QString::fromStdString(className()).remove("hoot::"); }
+
 private:
 
   ConstOsmMapPtr _map;
Clone this wiki locally