Skip to content

v0.2.48..v0.2.49 changeset NonBuildingAreaCriterion.h

Garret Voltz edited this page Oct 2, 2019 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/criterion/NonBuildingAreaCriterion.h b/hoot-core/src/main/cpp/hoot/core/criterion/NonBuildingAreaCriterion.h
index 3adb780..6aacaed 100644
--- a/hoot-core/src/main/cpp/hoot/core/criterion/NonBuildingAreaCriterion.h
+++ b/hoot-core/src/main/cpp/hoot/core/criterion/NonBuildingAreaCriterion.h
@@ -28,7 +28,7 @@
 #define NONBUILDINGAREACRITERION_H
 
 // hoot
-#include <hoot/core/criterion/ElementCriterion.h>
+#include <hoot/core/criterion/GeometryTypeCriterion.h>
 
 namespace hoot
 {
@@ -39,7 +39,7 @@ namespace hoot
  * Should be able to accomplish the same thing with a not building and is area chain but
  * couldn't.  See comments in train-area/RemoveIrrelevants.js
  */
-class NonBuildingAreaCriterion : public ElementCriterion
+class NonBuildingAreaCriterion : public GeometryTypeCriterion
 {
 public:
 
@@ -55,6 +55,12 @@ public:
   virtual QString getDescription() const
   { return "Identifies features that are areas but not buildings"; }
 
+  virtual GeometryType getGeometryType() const
+  { return GeometryType::Line; }
+
+  virtual QString toString() const override
+  { return QString::fromStdString(className()).remove("hoot::"); }
+
 };
 
 }
Clone this wiki locally