Skip to content

v0.2.49..v0.2.50 changeset ElementIdsVisitor.cpp

Garret Voltz edited this page Nov 6, 2019 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/visitors/ElementIdsVisitor.cpp b/hoot-core/src/main/cpp/hoot/core/visitors/ElementIdsVisitor.cpp
index fd74e5e..e384dcb 100644
--- a/hoot-core/src/main/cpp/hoot/core/visitors/ElementIdsVisitor.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/visitors/ElementIdsVisitor.cpp
@@ -42,6 +42,7 @@ _pCrit(pCrit)
 {
   if (_elementType == ElementType::Relation)
   {
+    // why is this?
     throw NotImplementedException("ElementIdsVisitor does not currently support relations.");
   }
 }
@@ -74,6 +75,8 @@ vector<long> ElementIdsVisitor::findElements(const ConstOsmMapPtr& map,
   return v.getIds();
 }
 
+// TODO: Some of these may be redundant with related methods in OsmUtils.
+
 vector<long> ElementIdsVisitor::_findCloseNodes(const ConstOsmMapPtr& map,
                                                 const Coordinate& refCoord, Meters maxDistance)
 {
@@ -111,7 +114,6 @@ vector<long> ElementIdsVisitor::findWays(const ConstOsmMapPtr& map, ElementCrite
   return _findElements(map, pCrit, map->getIndex().findWayNeighbors(refWay, maxDistance, addError));
 }
 
-// Convenience method for finding elements that contain the given tag
 vector<long> ElementIdsVisitor::findElementsByTag(const ConstOsmMapPtr& map,
                                                   const ElementType& elementType,
                                                   const QString& key, const QString& value)
Clone this wiki locally