v0.2.52..v0.2.53 changeset WayMatchStringMerger.cpp
Garret Voltz edited this page Feb 12, 2020
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/algorithms/WayMatchStringMerger.cpp b/hoot-core/src/main/cpp/hoot/core/algorithms/WayMatchStringMerger.cpp
index e993f06..007bfcd 100644
--- a/hoot-core/src/main/cpp/hoot/core/algorithms/WayMatchStringMerger.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/algorithms/WayMatchStringMerger.cpp
@@ -22,7 +22,7 @@
* This will properly maintain the copyright information. DigitalGlobe
* copyrights will be updated automatically.
*
- * @copyright Copyright (C) 2016, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2016, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
*/
#include "WayMatchStringMerger.h"
@@ -411,6 +411,16 @@ void WayMatchStringMerger::setKeeperStatus(Status s)
}
}
+void WayMatchStringMerger::addKeeperTags(const Tags& tags)
+{
+ // go through all the way mappings
+ foreach (SublineMappingPtr sm, _sublineMappingOrder)
+ {
+ // set the new status.
+ sm->getNewWay1()->addTags(tags);
+ }
+}
+
WayLocation WayMatchStringMerger::_snapToEnd(const WayLocation& wl) const
{
LOG_TRACE("Snapping to end...");