<div dir="ltr"><div>Hi,</div><div><br></div><div>It seems the nodata value is not being used as "fill" completely around tiled images.</div><div><br></div>To reproduce:<br clear="all"><div><br></div><div><a href="http://download.osgeo.org/geotiff/samples/spot/chicago/SP27GTIF.TIF">http://download.osgeo.org/geotiff/samples/spot/chicago/SP27GTIF.TIF</a><br></div><div><br></div><div><div>gdal_translate  -ot Float32 -of GPKG -co "TILING_SCHEME=GoogleMapsCompatible" SP27GTIF.TIF chi1.gpkg</div></div><div><div>gdal_translate -a_nodata "-nan" -ot Float32 -of GPKG -co "TILING_SCHEME=GoogleMapsCompatible" SP27GTIF.TIF chi2.gpkg</div></div><div><br></div><div><div>gdal_translate -of GTIFF -oo "USE_TILE_EXTENT=YES" chi1.gpkg chi1.tif</div></div><div>gdal_translate -of GTIFF -oo "USE_TILE_EXTENT=YES" chi2.gpkg chi2.tif<br></div><div><br></div><div>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.</div><div><br></div><div><br></div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div><div>Thanks,
</div></div></div><div>Roarke</div></div></div></div></div>
</div>