[gdal-dev] gdaladdo without explicit factors specified

Even Rouault even.rouault at spatialys.com
Wed Jun 28 08:38:30 PDT 2017


On mercredi 28 juin 2017 14:10:17 CEST Even Rouault wrote:
> Hi,
> 
> I'm pretty sure this must have annoyed a lot of people. When you run
> gdaladdo, you need to specify the appropriate overview levels. Generally
> you use power-of-two factors, but the question is then: what is the last
> relevant factor given the dimension of my file size ?
> 
> I've a ready to commit improvement where you can just do :
> gdaladdo [other options] my.tif
> and it will compute the appropriate power of two factors until the smallest
> overview is smaller or equal to 256x256 (this threshould can be adjusted
> with a new -minsize switch. Actually it should be named -maxminsize, since
> this is the maximum size of the smallest overview, but I guess -minsize
> will be clear enough)
> 
> The effect of this patch is the same as specifying manually all the overview
> factors implicitly computed. That means existing overview levels will be
> recomputed if their factor match one of the implicitly computed factors. Or
> they will be left unchanged if not matching one of the implictly computed
> overview factors.
> 
> Thoughts ?

Just committed into trunk

> 
> Even


-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170628/d77eb67e/attachment-0001.html>


More information about the gdal-dev mailing list