<div dir="ltr">Thanks Even.<div><br></div><div>I get a warning message when using <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">ogr2vrt.py on trunk 41534:</span> <br><div><br></div><div><div>jpalmer$ ogr2vrt.py --version</div><div>GDAL 2.3.0dev, released 2017/99/99</div><div><br></div><div>jpalmer$ ogr2vrt.py parcels.mbtiles parcels.vrt -oo ZOOM_LEVEL_AUTO=YES</div><div>Warning 6: driver MBTiles : type 'booleean' for ZOOM_LEVEL_AUTO open option is not recognized.</div></div></div><div><br></div><div>Also looks like a spelling mistake in the message.</div><div><br></div><div><div>jpalmer$ ogrinfo parcels.vrt -so</div><div>INFO: Open of `parcels.vrt'</div><div> using driver `OGR_VRT' successful.</div><div>Metadata:</div><div> bounds=174.1821636,-37.3637475,175.0829141,-36.6128647</div><div> center=174.6325388,-36.9883061,0</div><div> format=pbf</div><div> maxzoom=14</div><div> minzoom=0</div><div> name=parcels</div><div> scheme=tms</div><div> type=overlay</div><div> version=2</div><div> ZOOM_LEVEL=14</div><div>Warning 6: driver MBTiles : type 'booleean' for ZOOM_LEVEL_AUTO open option is not recognized.</div><div>1: parcels (Multi Polygon)</div></div><div><br></div><div>Cheers</div><div>Jeremy</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 19, 2018 at 2:41 AM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="font-family:'Sans Serif';font-size:9pt;font-weight:400;font-style:normal">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Jeremy,</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">As far as I know, there's no GUI way of setting open options in QGIS.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">One solution is to create a VRT that contains the open option in it</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">For example with ogr2vrt.py</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><a href="https://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples/ogr2vrt.py" target="_blank">https://svn.osgeo.org/gdal/<wbr>trunk/gdal/swig/python/<wbr>samples/ogr2vrt.py</a></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">python ogr2vrt.py your.mbtiles your.vrt -oo ZOOM_LEVEL_AUTO=YES</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Even</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">-- </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Spatialys - Geospatial professional services</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a></p></div></blockquote></div><br></div>