[gdal-dev] Creating a vector mbtile with several layers

DELEPINE Christophe christophe.delepine at thalesgroup.com
Thu Aug 18 08:03:26 PDT 2022


Hello



I want to implement a vector mbtile viewer and am considering using gdal to extract the data.

I am wondering if gdal public API allows to :



-   Retrieve metadata such as :

o   the min and max zoom levels for each layer

o   the min and max tile indexes for each layer and zoom level

-   Extract efficiently all the features of a given tile (with specific x/y indexes) at a given zoom level



I am currently reading the MBTILES implementation source code (mbtilesdataset.cpp) and there seems to be quite a lot of tricks internally (for instance with SetSpatialFilter)



Would somebody have an example using gdal to extract efficiently a tile for a given layer, given tile index and given zoom ?



Regards

Christophe


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220818/d086c0a0/attachment.htm>


More information about the gdal-dev mailing list