Skip to content

v0.2.54..v0.2.55 changeset RoadCrossingPolyReviewMarker.h

Garret Voltz edited this page Aug 14, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/ops/RoadCrossingPolyReviewMarker.h b/hoot-core/src/main/cpp/hoot/core/ops/RoadCrossingPolyReviewMarker.h
index 8a04172..75a3d1e 100644
--- a/hoot-core/src/main/cpp/hoot/core/ops/RoadCrossingPolyReviewMarker.h
+++ b/hoot-core/src/main/cpp/hoot/core/ops/RoadCrossingPolyReviewMarker.h
@@ -44,6 +44,8 @@ namespace hoot
 /**
  * Marks roads for review in instances where the cross over polygons and is governed by a set of
  * rules (see RoadCrossingPolyRule).
+ *
+ * @todo We could extend this to other linear types, like rivers, once we see a need.
  */
 class RoadCrossingPolyReviewMarker : public ConstOsmMapOperation, public Configurable
 {
@@ -56,7 +58,7 @@ public:
   /**
    * @see ConstOsmMapOperation
    */
-  void apply(const OsmMapPtr& map);
+  void apply(const OsmMapPtr& map) override;
 
   /**
    * @see Configurable
@@ -69,8 +71,8 @@ public:
   virtual QString getCompletedStatusMessage() const
   {
     return
-      "Marked " + StringUtils::formatLargeNumber(_numAffected) + " crossing polygons out of " +
-      StringUtils::formatLargeNumber(_numRoads) + " total roads .";
+      "Marked " + StringUtils::formatLargeNumber(_numAffected) + " roads crossing polygons " +
+      "out of " + StringUtils::formatLargeNumber(_numRoads) + " total roads .";
   }
 
   virtual QString getDescription() const
@@ -78,6 +80,11 @@ public:
 
   virtual std::string getClassName() const { return className(); }
 
+  /**
+   * @see FilteredByGeometryTypeCriteria
+   */
+  virtual QStringList getCriteria() const;
+
  private:
 
   OsmMapPtr _map;
Clone this wiki locally