garbled tiles from gdaladdo in geopackage
|Reported by:||tseval||Owned by:||warmerdam|
|Severity:||normal||Keywords:||gdaladdo geopackage raster|
When generating overviews in a geopackage, you may get random bitmap data in areas of an overview tile that are not entirely covered by their child tiles. This will typically happen along the edge of the dataset.
To reproduce: Use the attached TIF image as input and convert to GeoPackage with:
gdal_translate -of GPKG -a_srs "+proj=utm +zone=33 +datum=WGS84" 33_N5000raster_1.tif 33_n5000raster.gpkg
Then produce overviews with:
gdaladdo -r cubic 33_n5000raster.gpkg 2 4 8 16
On my computer I always get artifacts for tile 3,0,7 (level,col,row), but I guess this may vary.