Skip to content

v0.2.54..v0.2.55 changeset MapCropper.h

Garret Voltz edited this page Aug 14, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/ops/MapCropper.h b/hoot-core/src/main/cpp/hoot/core/ops/MapCropper.h
index 34f8c7f..d212d76 100644
--- a/hoot-core/src/main/cpp/hoot/core/ops/MapCropper.h
+++ b/hoot-core/src/main/cpp/hoot/core/ops/MapCropper.h
@@ -104,6 +104,7 @@ public:
   void setKeepOnlyFeaturesInsideBounds(bool keep);
   void setInclusionCriterion(const ElementCriterionPtr& crit) { _inclusionCrit = crit; }
   void setRemoveSuperflousFeatures(bool remove) { _removeSuperfluousFeatures = remove; }
+  void setRemoveMissingElements(bool remove) { _removeMissingElements = remove; }
 
 private:
 
@@ -124,6 +125,8 @@ private:
   std::set<long> _explicitlyIncludedWayIds;
   // removes useful features created after cropping
   bool _removeSuperfluousFeatures;
+  // emoves references to missing elements after cropping occurs
+  bool _removeMissingElements;
 
   int _statusUpdateInterval;
 
Clone this wiki locally