[gdal-dev] Questions about MBTiles write support @ GDAL 2.1 RC4

Even Rouault even.rouault at spatialys.com
Mon May 2 06:29:25 PDT 2016


Le lundi 02 mai 2016 15:11:54, gunnarblom a écrit :
> Even Rouault-2 wrote
> 
> > Ah ok, you can generate overviews/zoom layers with gdaladdo /
> > GDALBuildOverviews().
> 
> I tried using GDALBuildOverviews() but it generates a separate .ovr file
> and does not include it in the MBTiles file, right?

Open the dataset in update mode to get proper internal overviews in lower zoom 
levels.

> 
> If I'm looking at the code, it seems like it is checking that the database
> isn't in read-only mode, but it never writes the actual overview/zoom
> layers to the MBTiles database? What is going on there?

It does, indirectly through GDALRegenerateOverviewsMultiBand() that will 
trigger the IWriteBlock() method.

> 
> 
> 
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/gdal-dev-Questions-about-MBTiles-write
> -support-GDAL-2-1-RC4-tp5263684p5263915.html Sent from the GDAL - Dev
> mailing list archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list