Skip to content

v0.2.54..v0.2.55 changeset SparkJsonWriter.cpp

Garret Voltz edited this page Aug 14, 2020 · 1 revision
diff --git a/hoot-rnd/src/main/cpp/hoot/rnd/io/SparkJsonWriter.cpp b/hoot-rnd/src/main/cpp/hoot/rnd/io/SparkJsonWriter.cpp
index 420cf6d..3dea7e5 100644
--- a/hoot-rnd/src/main/cpp/hoot/rnd/io/SparkJsonWriter.cpp
+++ b/hoot-rnd/src/main/cpp/hoot/rnd/io/SparkJsonWriter.cpp
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 #include "SparkJsonWriter.h"
 
@@ -38,7 +38,7 @@ using namespace geos::geom;
 #include <hoot/core/util/Exception.h>
 #include <hoot/core/util/Factory.h>
 #include <hoot/core/util/Log.h>
-#include <hoot/core/visitors/CalculateHashVisitor.h>
+#include <hoot/rnd/visitors/MultiaryPoiHashVisitor.h>
 
 // Qt
 #include <QStringBuilder>
@@ -105,8 +105,9 @@ void SparkJsonWriter::writePartial(const ConstNodePtr& n)
   result += QString::number(e.getMinY(), 'g', 16) % "\t";
   result += QString::number(e.getMaxX(), 'g', 16) % "\t";
   result += QString::number(e.getMaxY(), 'g', 16) % "\t";
-  // Update after https://github.com/ngageoint/hootenanny/issues/1663
-  result += CalculateHashVisitor::toHashString(n) % "\t";
+  MultiaryPoiHashVisitor hashVis;
+  hashVis.setIncludeCircularError(true);
+  result += hashVis.toHashString(n) % "\t";
   result += "{\"element\":{\"type\":\"node\"";
   result += ",\"id\":" % QString::number(copy->getId(), 'g', 16);
   result += ",\"lat\":" % QString::number(copy->getY(), 'g', 16);
Clone this wiki locally