Skip to content

Commit 64c7e3e

Browse files
committed
#334 compute geometry bbox in target crs if possible
1 parent 30907e5 commit 64c7e3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openeo_driver/dry_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ def _normalize_geometry(self, geometries, target_crs=None) -> Tuple[Union[Driver
596596
# TODO: use proper distance for collection resolution instead of using a default distance?
597597
# TODO: or eliminate need for buffering in the first place? https://github.com/Open-EO/openeo-python-driver/issues/148
598598
if target_crs is not None:
599-
is_utm = crs == "AUTO:42001" or "Auto42001" in str(target_crs)
599+
is_utm = target_crs == "AUTO:42001" or "Auto42001" in str(target_crs)
600600
if is_utm:
601601
target_crs = BoundingBox.from_wsen_tuple(geometries.get_bounding_box(),crs=geometries.get_crs()).best_utm()
602602
else:

0 commit comments

Comments
 (0)