Taking a lot of time to load from Cog Titiler due to huge number of bands #958
-
Download of cog file is faster but taking a lot of time to visualise if there are huge number of bands in it. Is there any way to speed it up or use multi processing for this? Below are the details of the COG
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
Pretty hard to tell without knowing how you're trying to render your file 🤷♂️ |
Beta Was this translation helpful? Give feedback.
The COG created by GDAL is INTERLEAVED=PIXEL, hence fetching a subset of band indexes isn't supported. Hence, even if we query it, with a subset of the bands at high level and pass it to rasterio. (Rasterio needs to explicitly download an entire overview containing all bands, which covers the tile) and then extract the bands from it.
Ref:
Note: The COG specification itself is unopinionated about it as mentioned here.