Skip to content

v0.2.50..v0.2.51 changeset DeriveChangesetCommand.java

Garret Voltz edited this page Jan 15, 2020 · 1 revision
diff --git a/hoot-services/src/main/java/hoot/services/controllers/grail/DeriveChangesetCommand.java b/hoot-services/src/main/java/hoot/services/controllers/grail/DeriveChangesetCommand.java
index 38e87fa..db8d802 100644
--- a/hoot-services/src/main/java/hoot/services/controllers/grail/DeriveChangesetCommand.java
+++ b/hoot-services/src/main/java/hoot/services/controllers/grail/DeriveChangesetCommand.java
@@ -49,6 +49,11 @@ class DeriveChangesetCommand extends GrailCommand {
             options.add("changeset.allow.deleting.reference.features=false");
         }
 
+        //If passed a bounds, the changeset must be constrained to the bbox of the ref dataset
+        if(params.getBounds() != null) {
+            options.add("convert.bounding.box=" + params.getBounds());
+        }
+
         List<String> hootOptions = toHootOptions(options);
 
         Map<String, Object> substitutionMap = new HashMap<>();
Clone this wiki locally