Skip to content

Commit 3a8fd8f

Browse files
authored
Merge pull request #3 from mapchete/fix_products_out_of_crs_bounds
don't use rtree index for EODataCube products
2 parents aad1175 + d52e691 commit 3a8fd8f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mapchete_eo/base.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ def products(self) -> IndexedFeatures[EOProductProtocol]:
9191
if not isinstance(item, CorruptedProductMetadata)
9292
],
9393
crs=self.tile.crs,
94+
# by not using rtree, we avoid an edge case where products outside of process CRS bounds
95+
# cause rtree to fail when indexing the products.
96+
index=None,
9497
)
9598

9699
# just return the prouducts as is
@@ -101,6 +104,9 @@ def products(self) -> IndexedFeatures[EOProductProtocol]:
101104
if not isinstance(item, CorruptedProductMetadata)
102105
],
103106
crs=self.tile.crs,
107+
# by not using rtree, we avoid an edge case where products outside of process CRS bounds
108+
# cause rtree to fail when indexing the products.
109+
index=None,
104110
)
105111

106112
def read(

0 commit comments

Comments
 (0)