[gdal-dev] Reading various zoom-levels from a MBTiles db

Even Rouault even.rouault at spatialys.com
Wed Dec 29 10:50:55 PST 2021


Deyan,

you generally don't need to use that option. The driver should 
automatically select the right overview level when you use the dataset 
or band RasterIO() methods, according to the window of interest and the 
size of the buffer you specify.

Even

Le 29/12/2021 à 19:47, Deyan Vasilev a écrit :
> Hello,
> I am trying to handle map zooming in a GDAL-based MBTiles windows app. 
> The only way I have found to control the raster's zoom level is 
> through GDALOpenEx's open options.
>
> Changing the zoom-level app-side would require closing the MBTiles db 
> and reopening it, passing the new zoom level as an open option. I made 
> this to work but it seems to me somehow clumsy as there is surely a 
> significant overhead for closing and reopening the db.
>
> Can you please share if there is a way to request specific zoom-levels 
> without doing the closing/reopening stuff?
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
http://www.spatialys.com
My software is free, but my time generally not.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20211229/925846cd/attachment.html>


More information about the gdal-dev mailing list