From b5eea5796c3e1d5d61dfa92ab51d01cfd72c714f Mon Sep 17 00:00:00 2001 From: Pete Gadomski Date: Mon, 13 Sep 2021 07:43:36 -0600 Subject: [PATCH 1/2] Fix typing in projection Tuple vs. list issues, just converted to list for a simple fix. --- src/stactools/core/projection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stactools/core/projection.py b/src/stactools/core/projection.py index 21b73edc..c8b048a2 100644 --- a/src/stactools/core/projection.py +++ b/src/stactools/core/projection.py @@ -57,7 +57,7 @@ def fn(coords: abc.Sequence[Any]) -> abc.Sequence[Any]: coords[i] = fn(coord) else: x, y = coord - reprojected_coords = transformer.transform(x, y) + reprojected_coords = list(transformer.transform(x, y)) if precision is not None: reprojected_coords = [ round(n, precision) for n in reprojected_coords From a25b4f6dbf9566c384a64cca9e3a5631ed1c9560 Mon Sep 17 00:00:00 2001 From: Pete Gadomski Date: Mon, 13 Sep 2021 07:46:54 -0600 Subject: [PATCH 2/2] Update changelog for #198 --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b5bd89c1..25faf455 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,9 +7,11 @@ - Improved error reporting and documentation for old GDAL versions. GDAL 3.1 is required to read and write Cloud Optimized Geotiffs. ([#194](https://github.com/stac-utils/stactools/pull/194)) + ### Fixed - ReadTheDocs ([#190](https://github.com/stac-utils/stactools/pull/190)) +- Typing in the projection module ([#198](https://github.com/stac-utils/stactools/pull/198)) ## stactools 0.2.1