I am able to open the file using /vsigs/ on-the-fly without downloading it but each time I use gdal.Translate, it takes a long time to extract a tile for each modification of projWin parameter. Any help or recommendation, please, to be able to extract tile quickly on-the-fly from GCS?
I am trying to do something similar to this How to efficiently access files with GDAL from an S3 bucket using VSIS3? but using GCS and followed by extracting a tile.
Note: I want to use gdal, not rasterio
--debug onto the command and it prints much information about what it is doing. – user30184 Jan 27 '22 at 13:49
– AbdelRahman Abbas Jan 27 '22 at 13:57gdal.Translate('test.png', dem, projWin = (xmin, ymax, xmax, ymin), width=256, height = 256)