How To Build Internal Overviews With Python Gdal Buildoverviews()?
Trying to mimic the result of running gdaladdo -r average 'D:\image.tif' using python gdal bindings. When I run the code below, I get an external .ovr file. How can I generate an i
Solution 1:
This worked for me:
Image = gdal.Open('example.tiff', 1)
gdal.SetConfigOption("COMPRESS_OVERVIEW", "DEFLATE")
Image.BuildOverviews("AVERAGE", [2,4,8,16,32,64, 128, 256])
Post a Comment for "How To Build Internal Overviews With Python Gdal Buildoverviews()?"