Open saberraz opened 2 years ago
@saberraz where you want to add? in the article about background maps?
Correct.
For Geotiff or other formats:
gdal_translate my_dataset.tif my_dataset.mbtiles -of MBTILES
gdaladdo -r average my_dataset.mbtiles 2 4 8 16
It is more convenient to use GDAL for automating creation of MBtiles from WMTS/WMS.
gdal_translate "WMTS:wmts.xml,layer=Road_27700" wmts2.xml -of WMTS
gdal_translate -of MBTILES wmts2.xml os-offline.mbtiles -projwin <ulx> <uly> <lrx> <lry> -projwin_srs EPSG:27700
gdaladdo os-offline.mbtiles 2 4 8 16 32 64 128 256 512 1024