Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A little python script to take an mbtiles file and split it apart into a folder hierarchy of individual image tile files.

branch: master

Update README

latest commit fe7820a5ea
pbarry authored November 22, 2011
Octocat-spinner-32 README Update README November 22, 2011
Octocat-spinner-32 convert.py adding converter script October 14, 2011
README
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".
Something went wrong with that request. Please try again.