Does imread read subsets from cloud-optimized geotiffs

2 views (last 30 days)
Hi,
cloud-optimized geotiff (COG) is a format to work with spatial raster data in the cloud (https://www.cogeo.org/). I am currently working on a small coding project on extracting and downloading Landsat data from Microsoft's Planetary Computer. I managed to download individual images with some url based on a spatial bounding box using imread with the option 'PixelRegion' (imread(url,'PixelRegion',{ixr, ixc})). Yet, I am wondering whether imread internally downloads the entire image and then locally extracts the pixel region, or whether imread is able to do the extraction while reading the image. Latter would be great, because it would probably decrease download times by a lot.
I know, I could experiment and see how download times would scale with the size of the pixel region. However, perhaps someone from the image processing team could offer first-hand knowledge on this.
Moreover, I know this is not the place for enhancement requests. Yet, I think it would be great if geotiffread would have a pixel region or bounding box option. Alternatively, readgeoraster would be great to allow for urls as input.
Thanks and best regards, Wolfgang

Answers (0)

Categories

Find more on File Import and Export in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by