[gdal-dev] Building pyramids with gdaladdo

Even Rouault even.rouault at spatialys.com
Sun Feb 18 05:59:45 PST 2018


Gil,

to be able to properly reproduce, could you paste the output of 

gdalinfo myfile.tif

?

Even

> 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?
 I
> am converting to JPEG, it works well, I don't understand how I am reaching
> level 18 when the original has 17. 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 254 512 
> I am going to display the geopackage with a custom web viewer, that works
> best when the upper level has only 1 tile.
 
> Thanks.
> 
> On 17 February 2018 at 10:20,
> <bradh at frogmouth.net<mailto:bradh at frogmouth.net>> wrote:
 Can you show
> exactly how you did the conversion and overviews, and the dimensions of the
> original TIFF file. Are you trying to create tiles in JPEG or PNG? If JPEG,
> possibly you need to fill your TIFF. 
> The part about gpkg_zoom_other is telling you that what you are asking for
> can’t be done without breaking the power-of-two zoom level constraint. 
> What do you intend to do with your geopackage? The extensions that make
> sense will depend on the consumers of the file.
 
> Brad
> From: gdal-dev> [mailto:gdal-dev-bounces at lists.osgeo.org<mailto:gdal-dev-
bounces at lists.osge
> o.org>] On Behalf Of Gil
 Sent: Saturday, 17 February 2018 7:12 PM
> To: gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>
> Subject: [gdal-dev] Building pyramids with gdaladdo
> 
> Hey,
> 
> I got a gpkg file I converted from tiff using gdal_translate, it originally
> has level 17 tiles.
 I'd like to build it's pyramids till I reach a level
> with only 1 tile, I tried using gdaladdo, and when I built it with 2-256
> factors, I got a result that has level 18-11 where level 11 has two tiles. 
> I got two problems, I don't understand how I got level 18 after building
> pyramids upwards?
 And I'd like to reach one tile, so I tried using 512,
> however I get an error asking me to use gpkg_zoom_other, I don't understand
> why, and I am not sure how to use it? The error i'm getting is:
> Warning 1: Use of overview factor 512 causes gpkg_zoom_other extension to be
> needed
 ERROR 1: Could not find dataset corresponding to ov factor 512
> 
> Would appreciate some help routing me in the right direction.
> 
> Thanks!
> 
> 
> 
> 


-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180218/871aab31/attachment.html>


More information about the gdal-dev mailing list