From 22483b79fc00f14f6409e5fbb0c3bc9b85036bf4 Mon Sep 17 00:00:00 2001 From: maleksandrov Date: Tue, 21 Jun 2022 10:15:32 +0200 Subject: [PATCH] Handled case where bufferX or bufferY would be missing --- sentinelhub/areas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sentinelhub/areas.py b/sentinelhub/areas.py index 46dd5d7f..5d2a8c6c 100644 --- a/sentinelhub/areas.py +++ b/sentinelhub/areas.py @@ -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"""