-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.48..v0.2.49 changeset BuildingWayNodeCriterion.h
Garret Voltz edited this page Oct 2, 2019
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/criterion/BuildingWayNodeCriterion.h b/hoot-core/src/main/cpp/hoot/core/criterion/BuildingWayNodeCriterion.h
index 742e0ac..2727064 100644
--- a/hoot-core/src/main/cpp/hoot/core/criterion/BuildingWayNodeCriterion.h
+++ b/hoot-core/src/main/cpp/hoot/core/criterion/BuildingWayNodeCriterion.h
@@ -22,7 +22,7 @@
* This will properly maintain the copyright information. DigitalGlobe
* copyrights will be updated automatically.
*
- * @copyright Copyright (C) 2016, 2017, 2018 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2016, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
*/
#ifndef BUILDINGWAYNODECRITERION_H
#define BUILDINGWAYNODECRITERION_H
@@ -30,7 +30,7 @@
// hoot
#include <hoot/core/elements/OsmMap.h>
#include <hoot/core/elements/ConstOsmMapConsumer.h>
-#include <hoot/core/criterion/ElementCriterion.h>
+#include <hoot/core/criterion/GeometryTypeCriterion.h>
namespace hoot
{
@@ -38,7 +38,7 @@ namespace hoot
/**
* A criterion that keeps nodes belonging to a building way.
*/
-class BuildingWayNodeCriterion : public ElementCriterion, public ConstOsmMapConsumer
+class BuildingWayNodeCriterion : public GeometryTypeCriterion, public ConstOsmMapConsumer
{
public:
@@ -57,6 +57,12 @@ public:
long getMatchingWayId(const ConstElementPtr& e);
+ virtual GeometryType getGeometryType() const
+ { return GeometryType::Point; }
+
+ virtual QString toString() const override
+ { return QString::fromStdString(className()).remove("hoot::"); }
+
private:
ConstOsmMapPtr _map;