MBTiles

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/asd20752/PHP-MBTiles-Server

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

With Apache, you can serve tiles from multiple MBTiles with a mod_mbtiles module: https://github.com/systemed/mod_mbtiles

Serving and unpacking MBtiles using Elixir and Phoenix https://github.com/dkuku/tile_server

If you need more performance there is also a node.js server for image tiles only. https://github.com/asd20752/node-mbtiles

Data Download

MBTiles with OSM data for analysis are available from https://osmlab.github.io/osm-qa-tiles/ , these are provided by the Humanitarian OpenStreetMap Team and updated weekly. The planet, as well country extracts are available. These tiles were initially provided by Mapbox and made available daily.

The BBBike extract service offers mbtiles for an area of your choosing.

Generating MBTiles

Vespucci's documentation page Generating MBTiles files with custom imagery has a list of tools and resources for creating MBTiles files with custom data.

OpenSeaMap

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

Usable for:

Navi-ProgrammWebsite
GPXSeeGPXSee.org
Locus
OruxMaps
OpenCPNOpenCPN.org
WinNavWinNav.de

Look and Feel

Offline-Karten

Folgende Karten sind im Format MBTiles verfügbar:

RevierDownloadGrösseAbdeckung
AdriaAdria0,5 GB
BiskayaBiskaya0,5 GB
Englischer KanalEnglischer Kanal0,5 GB
MagellanstrasseMagellanstrasse0,1 GB
Mittelmeer OstMittelmeer Ost1,2 GB
Mittelmeer WestMittelmeer West1,0 GB
NordseeNordsee1,4 GB
OstseeOstsee1,2 GB

Other uses

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

See also

This article is issued from Openstreetmap. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.