Skip to content

Taking a lot of time to load from Cog Titiler due to huge number of bands #958

Answered by punit-kulal
sairahul1526 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@dimplejaiin
Comment options

@dimplejaiin
Comment options

@vincentsarago
Comment options

@punit-kulal
Comment options

Answer selected by vincentsarago
@vincentsarago
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants