-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.53..v0.2.54 changeset AreaCriterion.h
Garret Voltz edited this page Mar 31, 2020
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/criterion/AreaCriterion.h b/hoot-core/src/main/cpp/hoot/core/criterion/AreaCriterion.h
index 77f6b97..2971f8c 100644
--- a/hoot-core/src/main/cpp/hoot/core/criterion/AreaCriterion.h
+++ b/hoot-core/src/main/cpp/hoot/core/criterion/AreaCriterion.h
@@ -51,8 +51,7 @@ public:
bool isSatisfied(const Tags& tags, const ElementType& elementType) const;
- virtual GeometryType getGeometryType() const
- { return GeometryType::Polygon; }
+ virtual GeometryType getGeometryType() const { return GeometryType::Polygon; }
virtual ElementCriterionPtr clone() { return ElementCriterionPtr(new AreaCriterion(_map)); }
@@ -63,9 +62,12 @@ public:
virtual void setOsmMap(const OsmMap* map) { _map = map->shared_from_this(); }
+ virtual bool supportsSpecificConflation() const { return true; }
+
private:
ConstOsmMapPtr _map;
+ mutable ElementId _currentElementId;
};
}