[gdal-dev] Generating GeoTIFF overview ("gdaladdo -r gauss ...") takes days for 2GB file...

Even Rouault even.rouault at spatialys.com
Sun Oct 12 06:21:05 PDT 2014


On Sunday 12 October 2014 14:34:20 Stefan Keller wrote:
> Hi,
> 
> I have a GeoTIFF file of 2GB size. Now, this question is about
> gdaladdo and how to optimize loading time of such a large raster file.
> 
> According to my observations QGIS has fastest loading times when it's
> a single GeoTIFF file with overview images.
> 
> Q.1: Does anybody have tipps for even faster solutions loading raster
> files into in QGIS (prepared by OGR or other preprocessors)?
> 
> The command "gdaladdo -r gauss C:\SG.tif  2 4 8 16 32 64 128 256"
> takes actually about 7 days on a Lenovo notebook.
> 
> Q2.: Any hint's on how to accelerate this (or to other tools
> generating overviews/pyramids)?

Weird, I've tested something similar. I've created a 2 GB tiff with :

from osgeo import gdal
ds = gdal.GetDriverByName('GTiff').Create('big.tif', 45000, 45000)
ds = None

And then : gdaladdo  -r gauss big.tif  2 4 8 16 32 64 128 256

Takes 30 seconds on my laptop with GDAL 1.11 or trunk (brand new laptop 
admitedly, but still, shouldn't take more than a few minutes on a 2 or 3 year 
old hardware)

So not sure why this is so slow for you. Could you paste the output of 
gdalinfo on SG.tif in case something shows up ?

> 
> Yours, S.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list