Producing MBTiles from Openstreetmap data

From Maria GDK Wiki
Revision as of 15:16, 15 January 2026 by Mbu (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

There are several tools allow raw Openstreetmap data to be processed and converted into vector MBTiles datasets which adher to the OpenMapTiles schema. There are several web servers which can host and serve these datasets according to pre-defined styles. Maria GDK also supports theses datasets.

This article will describe how to use the open source tool Planetiler to process the entire planet from Openstreemap raw data (pbf) to MBTiles on Windows.

Prerequisites

Steps

  1. Configure WSL be allowed to use at least 75% of available memory and logical processors. The config file can be found at %UserProfile%\.wslconfig (see https://learn.microsoft.com/en-us/windows/wsl/wsl-config)
  2. Place planet-latest.pbf in a new folder.
  3. Open a Powershell prompt in the same folder
  4. Run command docker run -e JAVA_TOOL_OPTIONS="-Xmx64g" -v ${pwd}:/data ghcr.io/onthegomap/planetiler:latest --download --osm_path data/planet.osm.pbf --output /data/planet-latest.mbtiles