v0.2.53..v0.2.54 changeset UnionPolygonsVisitor.h
Garret Voltz edited this page Mar 31, 2020
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/visitors/UnionPolygonsVisitor.h b/hoot-core/src/main/cpp/hoot/core/visitors/UnionPolygonsVisitor.h
index 08deaca..f05090e 100644
--- a/hoot-core/src/main/cpp/hoot/core/visitors/UnionPolygonsVisitor.h
+++ b/hoot-core/src/main/cpp/hoot/core/visitors/UnionPolygonsVisitor.h
@@ -22,14 +22,13 @@
* This will properly maintain the copyright information. DigitalGlobe
* copyrights will be updated automatically.
*
- * @copyright Copyright (C) 2015, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2015, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
*/
#ifndef UNIONPOLYGONSVISITOR_H
#define UNIONPOLYGONSVISITOR_H
// Hoot
#include <hoot/core/visitors/ElementConstOsmMapVisitor.h>
-#include <hoot/core/info/OperationStatusInfo.h>
// geos
#include <geos/geom/Geometry.h>
@@ -43,7 +42,7 @@ namespace hoot
* @optimize This could be made more efficient by sacrificing a bit of RAM. See
* AlphaShape::toGeometry() for an example implementation.
*/
-class UnionPolygonsVisitor : public ElementConstOsmMapVisitor, public OperationStatusInfo
+class UnionPolygonsVisitor : public ElementConstOsmMapVisitor
{
public:
@@ -64,6 +63,8 @@ public:
virtual QString getCompletedStatusMessage() const
{ return "Combined " + QString::number(_numAffected) + " areas"; }
+ virtual std::string getClassName() const { return className(); }
+
private:
std::shared_ptr<geos::geom::Geometry> _result;