Skip to content

Support for Cloud Optimized GeoTIFFs (COG) when downloading #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
munshkr opened this issue Sep 15, 2021 · 0 comments
Open

Support for Cloud Optimized GeoTIFFs (COG) when downloading #2

munshkr opened this issue Sep 15, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@munshkr
Copy link
Member

munshkr commented Sep 15, 2021

STACInputTask should try to fetch only the relevant data from COG when providing a bounding box. Right now it downloads the whole file.

The simplest would be to leverage the new COG support on GDAL 3.1 and open the COG URLs using rasterio directly.

We could add a cog=True option on the STACInputTask constructor to indicate that it should try to open files directly instead of downloading them. Additionally it could guess if an asset is a COG file by looking up its MIME type (some catalogs include a "profile" attribute).

@munshkr munshkr added the enhancement New feature or request label Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant