Producing MBTiles from Openstreetmap data: Difference between revisions

From Maria GDK Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
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.
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.
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 ==
== Prerequisites ==


* Docker Desktop
* Docker Desktop, configured with the Windows WSL 2 backend. See https://docs.docker.com/desktop/features/wsl/
* planet-latest.pbf. Can be downloaded from https://planet.openstreetmap.org/
* planet-latest.pbf. Can be downloaded from https://planet.openstreetmap.org/
* Minimum 64 GB of RAM, preferably 128 GB
* Fast storage, preferably M.2 SSD
== Steps ==
# 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)
# Place planet-latest.pbf in a new folder.
# Open a Powershell prompt in the same folder
# Run command <code>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</code>

Latest revision as of 15:16, 15 January 2026

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