Skip to content

Instantly share code, notes, and snippets.

@etiennebr
Last active August 29, 2015 14:04
Show Gist options
  • Save etiennebr/a7fb52f794d27ec044ec to your computer and use it in GitHub Desktop.
Save etiennebr/a7fb52f794d27ec044ec to your computer and use it in GitHub Desktop.
Get overview block size from image
import sys
from osgeo import gdal
if len(sys.argv) > 1:
ds = gdal.Open(sys.argv[1])
print(ds.GetRasterBand(1).GetOverview(0).GetBlockSize())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment