Skip to content

v0.2.53..v0.2.54 changeset SpatialIndexer.h

Garret Voltz edited this page Mar 31, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/visitors/SpatialIndexer.h b/hoot-core/src/main/cpp/hoot/core/visitors/SpatialIndexer.h
index 4270b31..0358b4c 100644
--- a/hoot-core/src/main/cpp/hoot/core/visitors/SpatialIndexer.h
+++ b/hoot-core/src/main/cpp/hoot/core/visitors/SpatialIndexer.h
@@ -32,6 +32,7 @@
 #include <hoot/core/visitors/ElementConstOsmMapVisitor.h>
 #include <hoot/core/criterion/ElementCriterionConsumer.h>
 #include <hoot/core/info/OperationStatusInfo.h>
+#include <hoot/core/util/StringUtils.h>
 
 // TGS
 #include <tgs/RStarTree/HilbertRTree.h>
@@ -50,12 +51,11 @@ namespace hoot
  */
 class ElementCriterion;
 
-class SpatialIndexer : public ElementConstOsmMapVisitor, public ElementCriterionConsumer,
-  public OperationStatusInfo
+class SpatialIndexer : public ElementConstOsmMapVisitor, public ElementCriterionConsumer
 {
 public:
 
-  static std::string className() { return "hoot::CreateIndexVisitor"; }
+  static std::string className() { return "hoot::SpatialIndexer"; }
 
   explicit SpatialIndexer(std::shared_ptr<Tgs::HilbertRTree>& index,
                           std::deque<ElementId>& indexToEid,
@@ -108,7 +108,11 @@ public:
   { return "Indexing elements..."; }
 
   virtual QString getCompletedStatusMessage() const
-  { return "Indexed " + QString::number(_numAffected) + " elements."; }
+  { return "Indexed " + StringUtils::formatLargeNumber(_numAffected) + " elements."; }
+
+  long getSize() const { return _numAffected; }
+
+  virtual std::string getClassName() const { return className(); }
 
 private:
 
Clone this wiki locally