From d52e69197787a349be19a6a98dcf1c7bec05f37e Mon Sep 17 00:00:00 2001 From: Joachim Ungar Date: Fri, 8 Aug 2025 09:57:57 +0200 Subject: [PATCH] don't use rtree index for EODataCube products --- mapchete_eo/base.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mapchete_eo/base.py b/mapchete_eo/base.py index 423b8f6b..c98485e1 100644 --- a/mapchete_eo/base.py +++ b/mapchete_eo/base.py @@ -91,6 +91,9 @@ def products(self) -> IndexedFeatures[EOProductProtocol]: if not isinstance(item, CorruptedProductMetadata) ], crs=self.tile.crs, + # by not using rtree, we avoid an edge case where products outside of process CRS bounds + # cause rtree to fail when indexing the products. + index=None, ) # just return the prouducts as is @@ -101,6 +104,9 @@ def products(self) -> IndexedFeatures[EOProductProtocol]: if not isinstance(item, CorruptedProductMetadata) ], crs=self.tile.crs, + # by not using rtree, we avoid an edge case where products outside of process CRS bounds + # cause rtree to fail when indexing the products. + index=None, ) def read(