Skip to content

v0.2.52..v0.2.53 changeset PoiPolygonDistanceExtractor.h

Garret Voltz edited this page Feb 12, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/algorithms/extractors/poi-polygon/PoiPolygonDistanceExtractor.h b/hoot-core/src/main/cpp/hoot/core/algorithms/extractors/poi-polygon/PoiPolygonDistanceExtractor.h
index 4dcf852..1d89f91 100644
--- a/hoot-core/src/main/cpp/hoot/core/algorithms/extractors/poi-polygon/PoiPolygonDistanceExtractor.h
+++ b/hoot-core/src/main/cpp/hoot/core/algorithms/extractors/poi-polygon/PoiPolygonDistanceExtractor.h
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2016, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2016, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 #ifndef POIPOLYGONDISTANCEEXTRACTOR_H
 #define POIPOLYGONDISTANCEEXTRACTOR_H
@@ -30,7 +30,7 @@
 // hoot
 #include <hoot/core/elements/Element.h>
 #include <hoot/core/algorithms/extractors/FeatureExtractorBase.h>
-
+#include <hoot/core/conflate/poi-polygon/PoiPolygonInfoCache.h>
 
 namespace hoot
 {
@@ -44,7 +44,7 @@ public:
 
   static std::string className() { return "hoot::PoiPolygonDistanceExtractor"; }
 
-  PoiPolygonDistanceExtractor();
+  PoiPolygonDistanceExtractor(PoiPolygonInfoCachePtr infoCache = PoiPolygonInfoCachePtr());
 
   virtual std::string getClassName() const
   { return PoiPolygonDistanceExtractor::className(); }
@@ -62,6 +62,10 @@ public:
 
   virtual QString getDescription() const
   { return "Calculates the distance between a poi and a polygon"; }
+
+private:
+
+  PoiPolygonInfoCachePtr _infoCache;
 };
 
 }
Clone this wiki locally