<div dir="ltr">Hi,<div>I've exported a TIFF to geopackage raster, and noticed that while the exported data only cover</div><div>zoom level 7, the tile matrix definition ranges from 0 to 7.</div><div><br></div><div>From the reader point of view, it seems that in order to get the effectively populated tile</div><div>matrix levels one would have to run a select distinct on the zoom level in the tile table,</div><div>which seems rather inefficient.</div><div><br></div><div>I checked the spec and while it demands a tile matrix spec for populated levels, it does not</div><div>seem to require omitting it for non populated levels. Can you confirm?</div><div><br></div><div>I think I'm seeing in the code a check verifying that indeed at least one tile is present before</div><div>listing a particular zoom level:</div><div><br></div><div><div>// In read-only mode, only lists non empty zoom levels</div><div>    else if( !bUpdate )</div><div>    {</div><div>        osSQL += CPLSPrintf(" AND EXISTS(SELECT 1 FROM %s WHERE zoom_level = tm.zoom_level LIMIT 1)",</div><div>                            osQuotedTableName.c_str());</div><div>    }</div><div>   </div></div><div>Cheers</div><div>Andrea</div><div><br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><span><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><font size="2"><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">==</span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">GeoServer Professional Services from the experts! Visit <a href="http://goo.gl/it488V" target="_blank">http://goo.gl/it488V</a> for more information.</span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">==</span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Ing. Andrea Aime </span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">@geowolf</span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Technical Lead</span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">GeoSolutions S.A.S.</span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Via di Montramito 3/A</span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">55054  Massarosa (LU)</span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">phone: +39 0584 962313</span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">fax: +39 0584 1660272</span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">mob: +39  339 8844549</span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/geosolutions_it</a></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br><br></span></font></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><font size="2">AVVERTENZE AI SENSI DEL D.Lgs. 196/2003</font></span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><font size="2">Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.</font></span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><font size="2"> </font></span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><font size="2">The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility  for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.</font></span></p><div><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span></div></span></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div>