[gdal-dev] GDAL way to set open options in QGIS?

Jeremy Palmer palmerjnz at gmail.com
Sun Feb 18 11:39:45 PST 2018


Thanks Even.

I get a warning message when using ogr2vrt.py on trunk 41534:

jpalmer$ ogr2vrt.py --version
GDAL 2.3.0dev, released 2017/99/99

jpalmer$ ogr2vrt.py parcels.mbtiles parcels.vrt -oo ZOOM_LEVEL_AUTO=YES
Warning 6: driver MBTiles : type 'booleean' for ZOOM_LEVEL_AUTO open option
is not recognized.

Also looks like a spelling mistake in the message.

jpalmer$ ogrinfo parcels.vrt -so
INFO: Open of `parcels.vrt'
      using driver `OGR_VRT' successful.
Metadata:
  bounds=174.1821636,-37.3637475,175.0829141,-36.6128647
  center=174.6325388,-36.9883061,0
  format=pbf
  maxzoom=14
  minzoom=0
  name=parcels
  scheme=tms
  type=overlay
  version=2
  ZOOM_LEVEL=14
Warning 6: driver MBTiles : type 'booleean' for ZOOM_LEVEL_AUTO open option
is not recognized.
1: parcels (Multi Polygon)

Cheers
Jeremy


On Mon, Feb 19, 2018 at 2:41 AM, Even Rouault <even.rouault at spatialys.com>
wrote:

> Jeremy,
>
>
>
> As far as I know, there's no GUI way of setting open options in QGIS.
>
> One solution is to create a VRT that contains the open option in it
>
> For example with ogr2vrt.py
>
> https://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples/ogr2vrt.py
>
>
>
> python ogr2vrt.py your.mbtiles your.vrt -oo ZOOM_LEVEL_AUTO=YES
>
>
>
> Even
>
>
>
>
>
> --
>
> Spatialys - Geospatial professional services
>
> http://www.spatialys.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180219/11a821f5/attachment-0001.html>


More information about the gdal-dev mailing list