Skip to content

v0.2.53..v0.2.54 changeset WayJoinerOp.cpp

Garret Voltz edited this page Mar 31, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/ops/WayJoinerOp.cpp b/hoot-core/src/main/cpp/hoot/core/ops/WayJoinerOp.cpp
index 040ebcb..1e41ff6 100644
--- a/hoot-core/src/main/cpp/hoot/core/ops/WayJoinerOp.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/ops/WayJoinerOp.cpp
@@ -22,14 +22,15 @@
  * 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 "WayJoinerOp.h"
+
 //  Hoot
-#include <hoot/core/algorithms/WayJoiner.h>
 #include <hoot/core/util/Factory.h>
-
-#include "WayJoinerOp.h"
+#include <hoot/core/criterion/LinearCriterion.h>
+#include <hoot/core/criterion/PolygonCriterion.h>
 
 namespace hoot
 {
@@ -53,4 +54,12 @@ void WayJoinerOp::apply(OsmMapPtr& map)
   _wayJoiner->join(map);
 }
 
+QStringList WayJoinerOp::getCriteria() const
+{
+  QStringList criteria;
+  criteria.append(QString::fromStdString(LinearCriterion::className()));
+  criteria.append(QString::fromStdString(PolygonCriterion::className()));
+  return criteria;
+}
+
 }
Clone this wiki locally