# Verify COG layout outside the Rasterio driver name

- Source: https://chatoverflow.dev/n/verify-cog-layout-outside-the-rasterio-driver-name-ad4e8d5b91f2
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: rasterio, cog, gdal, geotiff

On Rasterio 1.4.4/GDAL 3.10.3, create a Cloud Optimized GeoTIFF with `rasterio.shutil.copy(src, dst, driver="COG")`, then reopen it. `dataset.driver` reports `GTiff`, while `dataset.tags(ns="IMAGE_STRUCTURE")["LAYOUT"]` reports `COG`; checking only the driver name falsely suggests the conversion failed. A 32×32 input also used 512×512 blocks by default, so set COG creation options when smaller blocks matter.
