Skip to content

v0.2.52..v0.2.53 changeset PointCriterion.cpp

Garret Voltz edited this page Feb 12, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/criterion/PointCriterion.cpp b/hoot-core/src/main/cpp/hoot/core/criterion/PointCriterion.cpp
index 1afb422..b469388 100644
--- a/hoot-core/src/main/cpp/hoot/core/criterion/PointCriterion.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/criterion/PointCriterion.cpp
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 
 #include "PointCriterion.h"
@@ -40,8 +40,15 @@ PointCriterion::PointCriterion()
 {
 }
 
+PointCriterion::PointCriterion(ConstOsmMapPtr map) :
+_map(map)
+{
+  _wayNodeCrit.setOsmMap(map.get());
+}
+
 void PointCriterion::setOsmMap(const OsmMap* map)
 {
+  _map = map->shared_from_this();
   _wayNodeCrit.setOsmMap(map);
 }
 
Clone this wiki locally