Skip to content

v0.2.53..v0.2.54 changeset EdgeDistanceExtractor.h

Garret Voltz edited this page Mar 31, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/algorithms/extractors/EdgeDistanceExtractor.h b/hoot-core/src/main/cpp/hoot/core/algorithms/extractors/EdgeDistanceExtractor.h
index e0de549..2099cdb 100644
--- a/hoot-core/src/main/cpp/hoot/core/algorithms/extractors/EdgeDistanceExtractor.h
+++ b/hoot-core/src/main/cpp/hoot/core/algorithms/extractors/EdgeDistanceExtractor.h
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2015, 2016, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2015, 2016, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 #ifndef EDGEDISTANCEEXTRACTOR_H
 #define EDGEDISTANCEEXTRACTOR_H
@@ -52,8 +52,6 @@ class EdgeDistanceExtractor : public AbstractDistanceExtractor, public ValueAggr
 public:
 
   EdgeDistanceExtractor(ValueAggregatorPtr, Meters spacing = 5.0);
-
-  // Use default MeanAggregator
   EdgeDistanceExtractor(Meters spacing = 5.0);
 
   static std::string className() { return "hoot::EdgeDistanceExtractor"; }
@@ -69,7 +67,7 @@ public:
 
   virtual void setConfiguration(const Settings& conf);
 
-  void setSpacing(const double spacing);
+  void setSpacing(const double spacing) { _spacing = spacing; }
 
   virtual QString getDescription() const
   { return "Calculates the distance from one set of lines to another"; }
@@ -82,9 +80,11 @@ private:
   double _oneDistance(const OsmMap& map, const std::shared_ptr<const Element>& e1,
     const std::shared_ptr<const Element>& e2) const;
 
-  std::vector<geos::geom::Coordinate> _discretize(const OsmMap& map, const std::shared_ptr<const Element>& e) const;
+  std::vector<geos::geom::Coordinate> _discretize(const OsmMap& map,
+                                                  const std::shared_ptr<const Element>& e) const;
 
-  std::shared_ptr<geos::geom::Geometry> _toLines(const OsmMap& map, const std::shared_ptr<const Element>& e) const;
+  std::shared_ptr<geos::geom::Geometry> _toLines(const OsmMap& map,
+                                                 const std::shared_ptr<const Element>& e) const;
 };
 
 }
Clone this wiki locally