Skip to content

Commit

Permalink
Handled case where bufferX or bufferY would be missing
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksMat committed Jun 21, 2022
1 parent 2995426 commit 22483b7
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 22483b7

Please sign in to comment.