Producing MBTiles from Openstreetmap data: Difference between revisions

From Maria GDK Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 15: Line 15:
# Place planet-latest.pbf in a new folder.
# Place planet-latest.pbf in a new folder.
# Open a Powershell prompt in the same folder
# Open a Powershell prompt in the same folder
# Run command
# 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