A little python script to take an mbtiles file and split it apart into a folder hierarchy of individual image tile files.
|convert.py||adding converter script|
Step 1: Save convert.py into the same folder as your .mbtiles file Step 2: Make sure python is installed Step 3: In terminal, cd into that folder Step 4: Run this: python convert.py filename.mbtiles That's it! It should generate a folder called filename filled with PNGs that contain the data in the mbtiles archive. Notes: - I understand that some mbtiles files have JPGs, not PNG. I haven't bothered to detect that yet, though. I just write all of the files with a .png extension. - The Y axis values are set from a top left origin, which is TMS standard. This is not the default on many other mapping applications, like the google maps API or Leaflet, which require an option to use "TMS" scheme instead of "XYZ".