[gdal-dev] Warping into gpkg PseudoTMS_GlobalMercator fails

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Tue Sep 18 22:06:59 PDT 2018


Hi,

I wonder if there is some issue in gdalwarp and how it is using the GPKG raster driver with a predefined tiling scheme. Feels like gdalwarp does not use any ZOOM_LEVEL_STRATEGY, if not one called "strict".

gdalwarp -of gpkg -t_srs epsg:3857 -co tiling_scheme=PseudoTMS_GlobalMercator -co zoom_level_strategy=lower sfdem.tif 3857.gpkg
Creating output file that is 640P x 488L.
ERROR 6: Could not find an appropriate zoom level of PseudoTMS_GlobalMercator tiling scheme that matches raster pixel size
ERROR 1: Raster table 3857 not correctly initialized due to missing call to SetGeoTransform()

A workaround is to warp  into TIFF and run gdal_translate afterwards
gdal_translate -of gpkg -co tiling_scheme=PseudoTMS_GlobalMercator 3857.tif 3857.gpkg


-Jukka Rahkonen-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180919/b8d5051d/attachment.html>


More information about the gdal-dev mailing list