[gdal-dev] GPKG and antimeridian

Bugbuster philippe.ghesquiere at airbus.com
Wed Nov 25 01:57:56 PST 2020


Hi Even,

I am getting closer !
I added the -addalpha to the VRT image. 
gdalbuildvrt -addalpha MyImage.vrt MyImageEast.tif MyImageWest.tif 

1) The final GPKG is much better with the *default* parameters :
gdal_translate -of GPKG MyImage.vrt MyImage.gpkg

The output GPKG image only contains the relevant pixel information.

2) If I want to use a standard scheme (e.g. InspireCRS84Quad),
gdal_translate still creates the transparent tiles:
gdal_translate -of GPKG -co TILING_SCHEME=InspireCRS84Quad -co
ZOOM_LEVEL_STRATEGY=AUTO MyImage.vrt MyImage.gpkg


I turned the debug mode on. 
There are calls to GDALWarpKernel(). If I understand the  GPKG format
description <https://gdal.org/drivers/raster/gpkg.html>   well, this is due
to the fact that my East and West TIFF images are not exactly aligned with
the InspireCRS84Quad grid.

Furthermore, I don't understand the line :
WARP: SetAlphaMax: AlphaMax not set

Is there anything to add to the gdal_translate command, so that the
"transparent information" is not ignored?

Here is a debug dump:
GDAL: GDALOpen(MyImage.vrt, this=00000000004E2730) succeeds as VRT.
Input file size is 6409301, 1277
GDAL: QuietDelete(UANTIM.vrt.gpkg) invoking Delete()
GDAL: GDALDefaultOverviews::OverviewScan()
GDAL: Computing area of interest: -180, 47.9316, 180, 48.0033
OGRCT: Wrap source at 2.69241e-05.
OGRCT: Wrap target at 2.69241e-05.
OGRCT: Wrap source at 2.69241e-05.
OGRCT: Wrap target at 2.69241e-05.
GDAL: Computing area of interest: -180, 47.9316, 180, 48.0033
OGRCT: Wrap source at 2.69241e-05.
OGRCT: Wrap target at 2.69241e-05.
WARP: SetAlphaMax: AlphaMax not set.
WARP: SetAlphaMax: AlphaMax not set.
GDAL: GDAL_CACHEMAX = 403 MB
GDAL: GDALOpen(UANTIM_wgs84NEGATIF_ouest.tif, this=000000000316DBF0)
succeeds as GTiff.
GDAL: GDALWarpKernel()::GWKBilinearNoMasksOrDstDensityOnlyByte()
Src=0,0,1371x1277 Dst=0,0,1792x1671
0GDAL: GDALWarpKernel()::GWKRealCase() Src=1368,0,1567x1277
Dst=1792,0,2048x1671
GDAL: GDALWarpKernel()::GWKRealCase() Src=2932,0,1568x1277
Dst=3840,0,2048x1671





--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html


More information about the gdal-dev mailing list