Skip to content

Commit 5aee3df

Browse files
committed
fix: throw an error if transformation fails
1 parent f0b73e8 commit 5aee3df

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Transformation failures in `reproject_geom` now throw an error ([#420](https://github.com/stac-utils/stactools/pull/420))
13+
1014
## [0.4.6] - 2023-04-10
1115

1216
### Added

src/stactools/core/projection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def fn(coords: Sequence[Any]) -> Sequence[Any]:
5050
coords[i] = fn(coord)
5151
else:
5252
x, y = coord
53-
reprojected_coords = list(transformer.transform(x, y))
53+
reprojected_coords = list(transformer.transform(x, y, errcheck=True))
5454
if precision is not None:
5555
reprojected_coords = [
5656
round(n, precision) for n in reprojected_coords

0 commit comments

Comments
 (0)