[gdal-dev] Nodata value and overviews

Even Rouault even.rouault at spatialys.com
Wed Oct 24 03:08:15 PDT 2018


On mercredi 24 octobre 2018 10:50:14 CEST Guy Doulberg wrote:
> Hi guys
> 
> I have a raster with NODATA value defined
> 
> I am creating overviews on top of that raster, using the gdaladdo
> 
> When using the overviews should I consider the NODATA value when reading
> the pixels, or all pixels in the overviews are valid?

Some of them might be set to NODATA. gdaladdo doesn't know how to create 
validity from invalidity ;-)

> 
> When calculating the overviews does gdaladdo consider the NODATA values as
> invalid pixels?

Yes

Even

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


More information about the gdal-dev mailing list