GeoPackage raster mosaic tile indices are mapped to the wrong co-ordinates
|Reported by:||tbarsballe||Owned by:||warmerdam|
When reading a GeoPackage raster mosaic using GDAL (via QGIS 2.14.8), it appears that the y-axis tile indices are read in the wrong order.
I am using a GeoPackage raster mosaic generated using GeoServer WMS, with the GeoPackage output format (GeoServer version 2.11, latest nightly build). GeoServer is able to read and display this GeoPackage without issues.
Examining the GeoPackage with an SQLite viewer, for zoom level 1 I see the (0,0) tile is at -180,-90 (bottom-left) and the (3,1) tile is at 180,90 (top-right), which seems correct (and leads me to believe this is indeed a GDAL bug rather than a GeoServer bug).
However, when trying to view this GeoPackage using QGIS, the bottom-left tile ends up top-left, and the top-right tile ends up bottom-right.