I have a tiff file and I'd like to convert it to mbtiles using GDAL 2.2.2, compiled with sqlite3. The first command seems to work :

gdal_translate -of mbtiles 000-2017-0915-6528-L93-0M20-E100.tif test.mbtiles Input file size is 5000, 5000 0...10...20...30...40...50...60...70...80...90...100 - done.

Now when I try to compute overviews with gdaladdo (like in doc):

gdaladdo -r average test.mbtiles 2 4 8

ERROR 4:test.mbtiles' not recognized as a supported file format.`

However MBTILES is in the list of supported format in gdaladdo --formats.

Does anyone have an idea ?

  • Works fine for me. Are you sure your test.mbtiles is really an mbtiles file and that it is exactly what gdal_translate created? No other software interfering? Maybe try a new filename. Nov 3, 2017 at 9:26
  • How can I test if my out file is a really mbtiles file ? Because when I try gdalinfo test.mbtiles, I have the same error : ERROR 4: test3.mbtiles not recognized as a supported file format. gdalinfo failed - unable to open 'test3.mbtiles' `
    – SYG
    Nov 3, 2017 at 9:30
  • This is very weird, because QGIS can open test3.mbtiles as a raster.
    – SYG
    Nov 3, 2017 at 9:37
  • @bugmenot123 Can you share your tiff which works for you ?
    – SYG
    Nov 3, 2017 at 10:10

1 Answer 1


Ok, I recompiled GDAL and now it's working. Thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.