Skip to content

Commit 4091c27

Browse files
JeroenVerstraelenPeter Van Bouwel
authored andcommitted
make extent order when calculating global_extent more intuitive Open-EO#358
1 parent 15c597d commit 4091c27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openeo_driver/ProcessGraphDeserializer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,10 +630,10 @@ def _extract_load_parameters(env: EvalEnv, source_id: tuple) -> LoadParameters:
630630

631631
for collection_id, constraint in source_constraints:
632632
extent = None
633-
if "weak_spatial_extent" in constraint:
634-
extent = constraint["weak_spatial_extent"]
635633
if "spatial_extent" in constraint:
636634
extent = constraint["spatial_extent"]
635+
elif "weak_spatial_extent" in constraint:
636+
extent = constraint["weak_spatial_extent"]
637637
if extent is not None:
638638
collection_crs = _collection_crs(collection_id[1][0], env)
639639
crs = constraint.get("resample", {}).get("target_crs", collection_crs) or collection_crs

0 commit comments

Comments
 (0)