Skip to content
Importer and Exporter of MBTiles
Branch: master
Clone or download
Pull request Compare This branch is 116 commits behind mapbox:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmake
include
CMakeLists.txt
README.md
mbutil.cpp

README.md

MBUtil

MBUtil is a utility for importing and exporting the MBTiles format.

Usage

Export an mbtiles file to files on the filesystem:

mbutil --input World_Light.mbtiles --output adirectory

Import a directory into a mbtiles file

mbutil --input directory --output World_Light.mbtiles

Building

MBUtil requires cmake, boost and SQLite to build.

cmake .
make

Ubuntu

sudo apt-get install cmake

Metadata

MBUtil imports and exports metadata as JSON, in the root of the tile directory, as a file named metadata.json.

{
    "metadata": {
        "name": "World Light",
        "description": "A Test Metadata",
        "version": "3"
    }
}

Authors

  • Tom MacWright (tmcw)
You can’t perform that action at this time.