Skip to content

Commit

Permalink
Add flag to crop regional analysis destinations to origin extents
Browse files Browse the repository at this point in the history
  • Loading branch information
ansoncfit authored Apr 18, 2024
1 parent 471ffe2 commit d783ec9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public Type getType() {
*/
@Override
public WebMercatorExtents getWebMercatorExtents() {
if (makeTauiSite) {
if (makeTauiSite || this.hasFlag("CROP_DESTINATIONS")) {
return WebMercatorExtents.forTask(this);
} else {
return WebMercatorExtents.forPointsets(this.destinationPointSets);
Expand Down Expand Up @@ -112,4 +112,8 @@ public int nTargetsPerOrigin () {
}
}

public boolean hasFlag (String flag) {
return this.flags != null && this.flags.contains(flag);
}

}

0 comments on commit d783ec9

Please sign in to comment.