[gdal-dev] Downscaled geotiff with overviews
Peter Schmitt
pschmitt at gmail.com
Sat Jul 31 07:12:16 PDT 2021
On Fri, Jul 30, 2021 at 12:28 PM Javier Jimenez Shaw <j1 at jimenezshaw.com>
wrote:
> I want to make a (power-of-two) downscaled version of a geotiff with
> overviews efficiently with C++ (not from the console).
>
I know you said you want to do this from C++ and not the console. In case
you did want to do it from the console... there's an open option for
gdal_translate to pluck a particular overview level out, like so:
gdal_translate in.tif out.tif -oo OVERVIEW_LEVEL=1
You might be able to do this with cleverly named overviews, like so:
gdal_translate in.tif out.tif.ovr -oo OVERVIEW_LEVEL=2
gdal_translate in.tif out.tif.ovr.ovr -oo OVERVIEW_LEVEL=3
...
and then one final translate which uses all the overviews to a new final
TIF.
Cheers,
Pete
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210731/4fefb1e8/attachment.html>
More information about the gdal-dev
mailing list