[gdal-dev] Fwd: Converting Tiff to GeoPackage with Zoom Levels

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[gdal-dev] Fwd: Converting Tiff to GeoPackage with Zoom Levels

Gil-2

Hello,

I have a tiff file which I am converting to GPKG (with jpeg) using gdal_translate and then build pyramids using gdal_addo, I'd like to get to a zoom level with only 1 tile (a recommendation from my displaying client - it's important).
However no matter how many levels I specify in gdal_Addo I don't get the level with 512.
My tiff file is 19968x29952 which I understand when calculated to the 512 level goes un-even, is there anything I can do to go that extra level?

The gpkg I get after gdal_translate comes with level 17, but after using gdal_addo I start from level 18, why can it be?
Conversion is done like this:

gdal_translate.exe -co TILE_FORMAT=JPEG -co TILING_SCHEME=InspireCRS84Quad -co ZOOM_LEVEL_STRATEGY=LOWER -of GPKG C:\myfile.tif C:\myfile.gpkg
gdaladdo -oo TILE_FORMAT=JPEG C:\myfile.gpkg 2 4 8 16 32 64 128 256 512

Thanks!
Gil


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: Converting Tiff to GeoPackage with Zoom Levels

Even Rouault-2

Please paste the output of gdalinfo C:\myfile.tif

 

Which gdal version do you use ? What you report sounds a bit like

https://trac.osgeo.org/gdal/ticket/6932

 

Even

 

--

Spatialys - Geospatial professional services

http://www.spatialys.com


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: Converting Tiff to GeoPackage with Zoom Levels

Gil-2
Hey Even,

I tried using gdal2.0.2 (deployed with QGIS 3.0) and got this result.
The original Tiff is converted to level 17 of GPKG, and then after the gdaladdo I have level 18 through 10, where 10 has 2 tiles.

This is the output of gdalinfo:
Driver: GTiff/GeoTIFF
Files: C:\myfile.tif
Size is 19968, 29952
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.257223563,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433],
    AUTHORITY["EPSG","4326"]]
Origin = (***, ***)
Pixel Size = (0.000004444518203,-0.000004444518203)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
*** Coordinates data removed ***
Band 1 Block=19968x1 Type=Byte, ColorInterp=Red
Band 2 Block=19968x1 Type=Byte, ColorInterp=Green
Band 3 Block=19968x1 Type=Byte, ColorInterp=Blue

Thanks!
Gil

On 28 April 2018 at 20:59, Even Rouault <[hidden email]> wrote:

Please paste the output of gdalinfo C:\myfile.tif

 

Which gdal version do you use ? What you report sounds a bit like

https://trac.osgeo.org/gdal/ticket/6932

 

Even

 

--

Spatialys - Geospatial professional services

http://www.spatialys.com


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: Converting Tiff to GeoPackage with Zoom Levels

Gil-2
In reply to this post by Even Rouault-2
Hey Even,

I tried using gdal2.0.2 (deployed with QGIS 3.0) and got this result.
The original Tiff is converted to level 17 of GPKG, and then after the gdaladdo I have level 18 through 10, where 10 has 2 tiles.

This is the output of gdalinfo:
Driver: GTiff/GeoTIFF
Files: C:\myfile.tif
Size is 19968, 29952
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.257223563,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433],
    AUTHORITY["EPSG","4326"]]
Origin = (***, ***)
Pixel Size = (0.000004444518203,-0.000004444518203)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
*** Coordinates data removed ***
Band 1 Block=19968x1 Type=Byte, ColorInterp=Red
Band 2 Block=19968x1 Type=Byte, ColorInterp=Green
Band 3 Block=19968x1 Type=Byte, ColorInterp=Blue

Thanks!
Gil

On 28 April 2018 at 20:59, Even Rouault <[hidden email]> wrote:

Please paste the output of gdalinfo C:\myfile.tif

 

Which gdal version do you use ? What you report sounds a bit like

https://trac.osgeo.org/gdal/ticket/6932

 

Even

 

--

Spatialys - Geospatial professional services

http://www.spatialys.com


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: Converting Tiff to GeoPackage with Zoom Levels

Even Rouault-2
In reply to this post by Gil-2

On dimanche 29 avril 2018 05:09:52 CEST Gil wrote:

> Hey Even,

>

> I tried using gdal2.0.2 (deployed with QGIS 3.0)

 

This is the dll name. gdal202 = gdal 2.[0]2. It is actually GDAL 2.2.4

 

> and got this result.

> The original Tiff is converted to level 17 of GPKG,

 

OK I reproduced. I've pushed a fix for the upcoming GDAL 2.3.0

 

Even

 

--

Spatialys - Geospatial professional services

http://www.spatialys.com


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev