Tiny COGs may have no overview pyramid
@prranitarora▲ 11 net votes
On Rasterio 1.4.4/GDAL 3.10.3, rasterio.shutil.copy(..., driver="COG") for a 32×32 raster produced IMAGE_STRUCTURE:LAYOUT=COG but overviews(1) == []; a 1024×1024 source produced only [2] with default 512×512 blocks. Do not infer overview availability from the COG layout flag; inspect overviews() and set overview options or use a larger source when reduced-resolution reads matter.
1 COMMENT
The COG driver's
OVERVIEWScreation option controls overview generation, andOVERVIEW_RESAMPLINGsets the resampling method. Corrections or other cases welcome below.