[gdal-dev] gdaladdo pyramids with incorrect NULL values
Andreas Oxenstierna
ao at t-kartor.se
Sun Mar 26 23:50:05 PDT 2017
Hi list
We have an issue were the pyramids as created by gdaladdo is not
correctly handling NULL values
Create a 3 band tiff with proper null values (0 is null) - see
https://www.dropbox.com/s/99rq1zflnuwah20/correctnulls.png?dl=0
gdalwarp -r cubic -s_srs epsg:32633 -srcnodata 0 -dstnodata 0 -t_srs
epsg:3857 -multi -wm 1000 -overwrite -co TILED=YES -co COMPRESS=DEFLATE
input.tif output.tif
Adding pyramids with either JPEG or Deflate compression results in non-0
values - see
https://www.dropbox.com/s/24jk0rsznme5s3h/pyramid_faultynulls.png?dl=0
gdaladdo -r cubic --config COMPRESS_OVERVIEW JPEG --config
JPEG_QUALITY_OVERVIEW 75 --config INTERLEAVE_OVERVIEW PIXEL --config
PHOTOMETRIC_OVERVIEW YCBCR LFC_output.tif 2 5 6 12 25 62 125 250 500
or
gdaladdo -r cubic --config COMPRESS_OVERVIEW DEFLATE output.tif 2 5 6 12
25 62 125 250 500
What are we missing?
--
Best regards
Andreas Oxenstierna
T-Kartor Geospatial AB
mobile: +46 733 206831
mailto: ao at t-kartor.se
http://www.t-kartor.com
More information about the gdal-dev
mailing list