<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div>
<div dir="auto">It’s just a typo in the mail, apologies. The result is the same. Any thoughts?</div>
<br>
<div class="gmail_quote">
<div>On Sat, 17 Feb 2018 at 12:39 Brad Hards <<a href="mailto:bradh@frogmouth.net">bradh@frogmouth.net</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto">Maybe 254 should have been 256...</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 17 Feb. 2018 19:36, Gil <<a href="mailto:gilpeleg@live.com" target="_blank">gilpeleg@live.com</a>> wrote:<br type="attribution">
<blockquote class="m_-624872677357434742quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div>
<div>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?
</div>
<div>I am converting to JPEG, it works well, I don't understand how I am reaching level 18 when the original has 17.</div>
<div>Conversion is done like this: </div>
<div><br>
</div>
<div>gdal_translate.exe -co TILE_FORMAT=JPEG -co TILING_SCHEME=InspireCRS84Quad -co ZOOM_LEVEL_STRATEGY=LOWER -of GPKG C:\myfile.tif C:\myfile.gpkg<br>
gdaladdo -oo TILE_FORMAT=JPEG C:\myfile.gpkg 2 4 8 16 32 64 128 254 512</div>
<div><br>
</div>
<div>I am going to display the geopackage with a custom web viewer, that works best when the upper level has only 1 tile.</div>
<div><br>
</div>
<div>Thanks.</div>
<div><br>
<div class="m_-624872677357434742elided-text">On 17 February 2018 at 10:20, <span>
<<a href="mailto:bradh@frogmouth.net" target="_blank">bradh@frogmouth.net</a>></span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
<div>
<div>
<p>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.<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>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.<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>Brad<u></u><u></u></p>
<div>
<div style="border-width:1pt medium medium;border-style:solid none none;border-color:rgb(225,225,225);padding:3pt 0cm 0cm">
<p><b>From:</b> gdal-dev [mailto:<a href="mailto:gdal-dev-bounces@lists.osgeo.org" target="_blank">gdal-dev-bounces@lists.osgeo.org</a>]
<b>On Behalf Of </b>Gil<br>
<b>Sent:</b> Saturday, 17 February 2018 7:12 PM<br>
<b>To:</b> <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<b>Subject:</b> [gdal-dev] Building pyramids with gdaladdo<u></u><u></u></p>
</div>
</div>
<p><u></u> <u></u></p>
<div>
<p>Hey, <u></u><u></u></p>
<div>
<p><u></u> <u></u></p>
</div>
<div>
<p>I got a gpkg file I converted from tiff using gdal_translate, it originally has level 17 tiles.<u></u><u></u></p>
</div>
<div>
<p>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.<u></u><u></u></p>
</div>
<div>
<p><u></u> <u></u></p>
</div>
<div>
<p>I got two problems, I don't understand how I got level 18 after building pyramids upwards?<u></u><u></u></p>
</div>
<div>
<p>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?<u></u><u></u></p>
</div>
<div>
<p>The error i'm getting is: <u></u><u></u></p>
</div>
<div>
<p>Warning 1: Use of overview factor 512 causes gpkg_zoom_other extension to be needed<u></u><u></u></p>
</div>
<div>
<p>ERROR 1: Could not find dataset corresponding to ov factor 512<u></u><u></u></p>
</div>
<div>
<p><u></u> <u></u></p>
</div>
<div>
<p>Would appreciate some help routing me in the right direction.<u></u><u></u></p>
</div>
<div>
<p><u></u> <u></u></p>
</div>
<div>
<p>Thanks!<u></u><u></u></p>
</div>
<div>
<p><u></u> <u></u></p>
</div>
<div>
<p><u></u> <u></u></p>
<div>
<p><u></u> <u></u></p>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
</div>
</body>
</html>