Last active
August 29, 2015 14:04
-
-
Save etiennebr/a7fb52f794d27ec044ec to your computer and use it in GitHub Desktop.
Get overview block size from image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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