Re: [gdal-dev] GPKG and antimeridian

2020-11-25 Thread Bugbuster
Hi Even, just to conclude :-) Yes, you were right (as usual !): Using "gdalbuildvrt -addalpha" along with "gdal_translate -co TILING_SCHEME=xxx" does the job. I just needed to be *very* patient: 1) gdal_translate takes a long time: more than an hour. Without "-co TILING_SCHEME=xxx" option, it tak

Re: [gdal-dev] GPKG and antimeridian

2020-11-25 Thread Even Rouault
> I turned the debug mode on. > There are calls to GDALWarpKernel(). You'll always get calls to GDALWarpKernel() with gdal_translate -of GPKG -co TILING_SCHEME > Furthermore, I don't understand the line : > WARP: SetAlphaMax: AlphaMax not set You can ignore it. AlphaMax is set when the number of

Re: [gdal-dev] GPKG and antimeridian

2020-11-25 Thread Bugbuster
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 re

Re: [gdal-dev] GPKG and antimeridian

2020-11-24 Thread Even Rouault
Philippe, > 1) gdalwarp using *"-co"* options yield to errors, even with -tr and -t_srs > options > PROMPT> gdalwarp -overwrite -of GPKG -co TILING_SCHEME=InspireCRS84Quad -co > ZOOM_LEVEL_STRATEGY=AUTO -tr 0.56168363154 0.56168363154 -t_srs > EPSG:4326 MyImageEast.tif MyImageWest.tif out.

Re: [gdal-dev] GPKG and antimeridian

2020-11-24 Thread Bugbuster
Sorry my previous message is a bit screwed up (part of the message has been lost) 1) gdalwarp using *"-co"* options yield to errors, even with -tr and -t_srs options PROMPT> gdalwarp -overwrite -of GPKG -co TILING_SCHEME=InspireCRS84Quad -co ZOOM_LEVEL_STRATEGY=AUTO -tr 0.56168363154 0.561

Re: [gdal-dev] GPKG and antimeridian

2020-11-23 Thread Even Rouault
On lundi 23 novembre 2020 09:14:26 CET Bugbuster wrote: > Even, > Your last suggestion (gdalwarp) sounds quite interesting. > I still don't know how to manage the different GPKG options (e.g. > TILING_SCHEME) TILING_SCHEME is a bit particular as a creation option in the GPKG driver. You can pass

Re: [gdal-dev] GPKG and antimeridian

2020-11-23 Thread Bugbuster
Even, Your last suggestion (gdalwarp) sounds quite interesting. I still don't know how to manage the different GPKG options (e.g. TILING_SCHEME) I tried to use *"-co"* option: I also tried to use *"-doo"* option. PROMPT> gdalwarp -of GPKG -co TILING_SCHEME=InspireCRS84Quad MyImageEast.tif MyIm

Re: [gdal-dev] GPKG and antimeridian

2020-11-23 Thread Even Rouault
Hello, > I created a "single raste_table" GPKG image, based on a VRT image : > > > It does work. However, the output image is HUGE: all the empty tiles within > [-179.0° ; +179.0°] are created. > * Is there a way to tell gdal_translate not to create those useless tiles ? > * does GPKG format sup

[gdal-dev] GPKG and antimeridian

2020-11-23 Thread Bugbuster
Dear all, I would like to manage an image which spans over the antimeridian in GPKG format. After reading some information in the GDAL forum, I did a few tests and I have some questions. First of all, I divided my image MyImage.tif (CRS = EPSG:4326) into 2 sub-images : 1) MyImageEast.tif, which sp