[gdal-dev] gdaladdo -r max?

Even Rouault even.rouault at spatialys.com
Thu Jul 7 00:57:12 PDT 2016


> I'm in need of "max" resampling in gdaladdo, to preserve the highest points
> in elevation raster overviews. I've found that gdalwarp supports "-r max",
> but gdaladdo doesn't.
> Can I achieve what I need (with prebuilt GDAL binaries)? (How?)

You could do it possibly this way :

gdalwarp your.tif your.tif.ovr -ts with_of_your_tif/2 height_of_your_tif/2 -r max
gdalwarp your.tif.ovr your.tif.ovr.ovr -ts with_of_your_tif/4 height_of_your_tif/4 -r max


Spatialys - Geospatial professional services

More information about the gdal-dev mailing list