Skip to content

v0.2.52..v0.2.53 changeset NonConflatableElementRemover.cpp

Garret Voltz edited this page Feb 12, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/ops/NonConflatableElementRemover.cpp b/hoot-core/src/main/cpp/hoot/core/ops/NonConflatableElementRemover.cpp
index 75ddf8b..5c0c402 100644
--- a/hoot-core/src/main/cpp/hoot/core/ops/NonConflatableElementRemover.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/ops/NonConflatableElementRemover.cpp
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 
 #include "NonConflatableElementRemover.h"
@@ -49,8 +49,10 @@ void NonConflatableElementRemover::apply(std::shared_ptr<OsmMap>& map)
 
   RemoveElementsVisitor removeElementsVisitor;
   removeElementsVisitor.setRecursive(true);
+  // RemoveElementsVisitor will auto handle setting the config on this crit.
   removeElementsVisitor.addCriterion(
     std::shared_ptr<NonConflatableCriterion>(new NonConflatableCriterion()));
+  removeElementsVisitor.setConfiguration(conf());
   _map->visitRw(removeElementsVisitor);
 }
 
Clone this wiki locally