From 97c7b4f756a61fb8f8fe1e022eec4b9dd8329eb2 Mon Sep 17 00:00:00 2001 From: g2giovanni Date: Thu, 17 Jun 2021 09:40:18 +0200 Subject: [PATCH] fixed upper right corner bounds transformation Upper right bound is calculated in the wrong way as explained in https://github.com/gjoseph92/stackstac/issues/59 --- stackstac/geom_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stackstac/geom_utils.py b/stackstac/geom_utils.py index e1bb859..ecd43fd 100644 --- a/stackstac/geom_utils.py +++ b/stackstac/geom_utils.py @@ -21,7 +21,7 @@ def bounds_from_affine( ul_x, ul_y = af * (0, 0) ll_x, ll_y = af * (0, ysize) lr_x, lr_y = af * (xsize, ysize) - ur_x, ur_y = af * (0, xsize) + ur_x, ur_y = af * (xsize, 0) xs = [ul_x, ll_x, lr_x, ur_x] ys = [ul_y, ll_y, lr_y, ur_y]