Skip to content

v0.2.49..v0.2.50 changeset RemoveDuplicateWayNodesVisitor.h

Garret Voltz edited this page Nov 6, 2019 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/visitors/RemoveDuplicateWayNodesVisitor.h b/hoot-core/src/main/cpp/hoot/core/visitors/RemoveDuplicateWayNodesVisitor.h
index cac0771..1cc7291 100644
--- a/hoot-core/src/main/cpp/hoot/core/visitors/RemoveDuplicateWayNodesVisitor.h
+++ b/hoot-core/src/main/cpp/hoot/core/visitors/RemoveDuplicateWayNodesVisitor.h
@@ -31,6 +31,7 @@
 // Hoot
 #include <hoot/core/elements/ElementVisitor.h>
 #include <hoot/core/info/OperationStatusInfo.h>
+#include <hoot/core/elements/Way.h>
 
 namespace hoot
 {
@@ -53,6 +54,13 @@ public:
 
   virtual void visit(const ElementPtr& e);
 
+  /**
+   * Removes duplicates nodes from a way
+   *
+   * @param way the way to remove duplicate nodes from
+   */
+  static void removeDuplicates(const WayPtr& way);
+
   virtual QString getInitStatusMessage() const { return "Removing duplicate way nodes..."; }
 
   virtual QString getCompletedStatusMessage() const
Clone this wiki locally