Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion mapchete_eo/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from typing import Any, Callable, List, Optional, Type, Union

import croniter
from mapchete import Bounds
import numpy.ma as ma
import xarray as xr
from dateutil.tz import tzutc
Expand Down Expand Up @@ -436,7 +437,13 @@ def _init_area(self, input_params: dict) -> BaseGeometry:
process_area = input_params["delimiters"]["effective_area"]
if self.params.area:
# read area parameter and intersect with effective area
configured_area, configured_area_crs = guess_geometry(self.params.area)
configured_area, configured_area_crs = guess_geometry(
self.params.area,
bounds=Bounds.from_inp(
input_params.get("delimiters", {}).get("bounds"),
crs=getattr(input_params.get("pyramid"), "crs"),
),
)
return process_area.intersection(
reproject_geometry(
configured_area,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies = [
"click",
"croniter",
"lxml",
"mapchete[complete]>=2025.6.0",
"mapchete[complete]>=2025.10.0",
"opencv-python-headless",
"Pillow",
"pydantic",
Expand Down