MBTiles

From OpenStreetMap Wiki
Jump to navigation Jump to search

MBTiles is a file format for storing map tiles in a single file. It is, technically, a SQLite database. Latest format version as of Feb 2018 is 1.3.

Serving MBTiles

Since the only qualification for implementing languages is basic SQLite support, the logic is easily ported. A list of implementations is maintained by the project.

A simple PHP MBTiles Server script for serving image tiles only: https://github.com/bmcbride/PHP-MBTiles-Server

A more sophisticated PHP TileServer supporting UTFGrid & TileJson: https://github.com/infostreams/mbtiles-php

Data Download

MBTiles for analysis are available from http://osmlab.github.io/osm-qa-tiles/ , provided from Mapbox and updated daily. The planet, as well country extracts are available.

OpenSeaMap

You can get OpenSeaMap offline-charts in MBTiles-format:

Usable for:

Navi-Programm Website
Locus
OruxMaps
OpenCPN OpenCPN.org
WinNav WinNav.de

Look and Feel

OpenSeaMap
auf Samsung, mit Locus Pro

Offline-Karten

Folgende Karten sind im Format MBTiles verfügbar:

Revier Download Grösse Abdeckung
Adria Adria 0,5 GB The area covered by the OpenSeaMap chart bundle 'Adriatic Sea' as of may 2016.
Biskaya Biskaya 0,5 GB The area covered by the OpenSeaMap chart bundle 'Gulf of Biscay' as of may 2016.
Englischer Kanal Englischer Kanal 0,5 GB The area covered by the OpenSeaMap chart bundle 'British Channel' as of june 2016.
Magellanstrasse Magellanstrasse 0,1 GB The area covered by the OpenSeaMap chart bundle 'Magellan Strait' as of june 2016.
Mittelmeer Ost Mittelmeer Ost 1,2 GB The area covered by the OpenSeaMap chart bundle 'Mediterranean Sea East' as of may 2016.
Mittelmeer West Mittelmeer West 1,0 GB The area covered by the OpenSeaMap chart bundle 'Mediterranean Sea West' as of may 2016.
Nordsee Nordsee 1,4 GB The area covered by the OpenSeaMap chart bundle 'NorthSea' as of may 2016.
Ostsee Ostsee 1,2 GB The area covered by the OpenSeaMap chart bundle 'Baltic Sea' as of june 2016.

Other uses

You can bring a layer into JOSM from an MBTiles database using JOSM/Plugins/Mbtiles