Method to filter assets within mosaic_reader #683
Unanswered
sor-droneup
asked this question in
Q&A
Replies: 1 comment 1 reply
-
if the geotiff does not intersect with the tile, a could you maybe explain a bit more and share a reproducible example 🙏 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I've noticed that for some mosaic the mosaic_reader function download some geotiffs before pixel selection, even if those geotiffs does not intersect with the tile (this happens in case if mosaic was generated with low zoom level).
A simple filter method could be added that would check if geotiff boundaries intersects with a tile before loading it, that would greatly reduce the execution time in scenarios like above.
Has this been considered before ? Is there any reason why there is no such filtering?
Such logics could be added for example in line 78 here:
rio-tiler/rio_tiler/mosaic/reader.py
Line 25 in 73175d0
Beta Was this translation helpful? Give feedback.
All reactions