Skip to content

Commit

Permalink
Merge pull request #293 from sentinel-hub/fix/batch-splitter-missing-…
Browse files Browse the repository at this point in the history
…params

BatchSplitter fix - handled case where bufferX or bufferY would be missing
  • Loading branch information
zigaLuksic authored Jun 21, 2022
2 parents 2995426 + 22483b7 commit afdcdb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sentinelhub/areas.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ def _get_tile_buffer(self) -> Tuple[float, float]:
"""Calculates tile buffer in units of the grid CRS."""
grid_info = self.batch_request.tiling_grid
resolution = grid_info["resolution"]
return grid_info["bufferX"] * resolution, grid_info["bufferY"] * resolution
return grid_info.get("bufferX", 0) * resolution, grid_info.get("bufferY", 0) * resolution

def _make_split(self) -> Tuple[List[BBox], List[Dict[str, object]]]:
"""This method actually loads bounding boxes from the service and prepares the lists"""
Expand Down

0 comments on commit afdcdb0

Please sign in to comment.