Skip to content

v0.2.55..v0.2.56 changeset GenerateAlphaShapeCmd.cpp

Garret Voltz edited this page Aug 14, 2020 · 3 revisions
diff --git a/hoot-core/src/main/cpp/hoot/core/cmd/GenerateAlphaShapeCmd.cpp b/hoot-core/src/main/cpp/hoot/core/cmd/GenerateAlphaShapeCmd.cpp
index f75c27b..cfa823f 100644
--- a/hoot-core/src/main/cpp/hoot/core/cmd/GenerateAlphaShapeCmd.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/cmd/GenerateAlphaShapeCmd.cpp
@@ -52,7 +52,7 @@ public:
 
   static string className() { return "hoot::GenerateAlphaShapeCmd"; }
 
-  GenerateAlphaShapeCmd() {}
+  GenerateAlphaShapeCmd() = default;
 
   virtual QString getName() const override { return "generate-alpha-shape"; }
 
@@ -79,7 +79,9 @@ public:
     OsmMapPtr pointsMap(new OsmMap());
     IoUtils::loadMap(pointsMap, pointsPath, false, Status::Unknown1);
 
-    OsmMapPtr result = AlphaShapeGenerator(alpha, buffer).generateMap(pointsMap);
+    AlphaShapeGenerator generator(alpha, buffer);
+    //generator.setManuallyCoverSmallPointClusters(false);
+    OsmMapPtr result = generator.generateMap(pointsMap);
 
     // reproject back into lat/lng
     MapProjector::projectToWgs84(result);
Clone this wiki locally