Skip to content

Commit

Permalink
fix extent order when calculating global_extent #358
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenVerstraelen committed Jan 30, 2025
1 parent 4e181db commit fd82229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openeo_driver/ProcessGraphDeserializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,10 +629,10 @@ def _extract_load_parameters(env: EvalEnv, source_id: tuple) -> LoadParameters:

for collection_id, constraint in source_constraints:
extent = None
if "spatial_extent" in constraint:
extent = constraint["spatial_extent"]
if "weak_spatial_extent" in constraint:
extent = constraint["weak_spatial_extent"]
if "spatial_extent" in constraint:
extent = constraint["spatial_extent"]
if extent is not None:
collection_crs = _collection_crs(collection_id[1][0], env)
crs = constraint.get("resample", {}).get("target_crs", collection_crs) or collection_crs
Expand Down

0 comments on commit fd82229

Please sign in to comment.