[gdal-dev] GPKG nodata isn't applied in all tiles

Roarke Gaskill roarke.gaskill at weather.com
Thu Sep 28 07:08:00 PDT 2017


Hi,

It seems the nodata value is not being used as "fill" completely around
tiled images.

To reproduce:

http://download.osgeo.org/geotiff/samples/spot/chicago/SP27GTIF.TIF

gdal_translate  -ot Float32 -of GPKG -co
"TILING_SCHEME=GoogleMapsCompatible" SP27GTIF.TIF chi1.gpkg
gdal_translate -a_nodata "-nan" -ot Float32 -of GPKG -co
"TILING_SCHEME=GoogleMapsCompatible" SP27GTIF.TIF chi2.gpkg

gdal_translate -of GTIFF -oo "USE_TILE_EXTENT=YES" chi1.gpkg chi1.tif
gdal_translate -of GTIFF -oo "USE_TILE_EXTENT=YES" chi2.gpkg chi2.tif

Notice that chi1.tif has 0 values all the way around the image.  As I would
expect because a nodata value was not applied when creating the gpkg.
Howeverm in chi2.tif it appears the nodata value of nan was applied on the
left and top of the image but not on the right and bottom.  Though on the
right it does appear to have applied some nodata values but not completely
to the right edge of the image.


Thanks,
Roarke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170928/06109a2d/attachment.html>


More information about the gdal-dev mailing list