Skip to content

Instantly share code, notes, and snippets.

@evenevan
Last active July 12, 2024 00:32
Show Gist options
  • Save evenevan/4b1855d47d8b3a2690be11e5d8d52f9d to your computer and use it in GitHub Desktop.
Save evenevan/4b1855d47d8b3a2690be11e5d8d52f9d to your computer and use it in GitHub Desktop.
osm mbtiles

get osm (open street map) data in .mbtiles form

get *.osm.pbf files from https://wiki.openstreetmap.org/wiki/Planet.osm#Worldwide_extract_sources. i used http://download.openstreetmap.fr/ as they have a nice extract of canada

tilemaker didn't work for me, the output didn't show many of the layers until i was zoomed in a lot

using planetiler in docker:

docker run -e JAVA_TOOL_OPTIONS="-Xmx5g" -v "$(PWD):/data" ghcr.io/onthegomap/planetiler:latest --osm-path=/data/canada-latest.osm.pbf --output=/data/canada-latest.mbtiles --download
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment