diff --git a/mapchete_eo/base.py b/mapchete_eo/base.py index c98485e..aa3bb59 100644 --- a/mapchete_eo/base.py +++ b/mapchete_eo/base.py @@ -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 @@ -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, diff --git a/pyproject.toml b/pyproject.toml index 3dfa7f2..24a674f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ dependencies = [ "click", "croniter", "lxml", - "mapchete[complete]>=2025.6.0", + "mapchete[complete]>=2025.10.0", "opencv-python-headless", "Pillow", "pydantic",