[gdal-dev] gdalwarp ignoring scale and offset

Even Rouault even.rouault at spatialys.com
Mon Dec 10 11:26:07 PST 2018


On lundi 10 décembre 2018 20:11:33 CET Erik Heinz wrote:
> Hello everyone,
> 
> I like to use geotiff files with UInt16 raster bands and scale/offset
> metadata for saving cm-resolution elevation data in an efficient way.
> 
> In principle, this works well with gdal. As of version 2.3.2, however,
> gdalwarp seems to silently drop the offset and scale values. I'm inclined to
> say, this has been working in the past. But I am not sure.
> gdal_translate on the contrary leaves scale and offset intact.
> 
> Maybe, someone can look into this. Thank you.

As far as I can see, gdalwarp has never applied the offset and scale values 
(tested down to 1.11), but gdal_translate does.

You may file a ticket about that:
https://github.com/OSGeo/gdal/issues/new

Even

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


More information about the gdal-dev mailing list