[gdal-dev] Save MVT tiles to a local MBTiles file

Even Rouault even.rouault at spatialys.com
Mon Mar 15 15:56:03 PDT 2021


Le 15/03/2021 à 14:55, Next Stop a écrit :
> Can ogr2ogr be used to save MVT tiles from an HTTP server to a local 
> MBTiles file?
> I just need to fetch tiles at given bbox and zoom levels and insert 
> them to MBTiles DB without any format conversion or schema introspection.
> Seems like writing to mbtiles db with ogr is possible.
> Can I use og2ogr without -oo metadata_file in this case?

No, ogr2ogr will always go through the OGR data model converting input 
MVT tiles to OGRFeature and then generating new tiles from them. For 
what you want to accomplish, you need to do that "at hand" with your own 
code.

Even

-- 

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



More information about the gdal-dev mailing list