protomaps / PMTiles

Cloud-optimized + compressed single-file tile archives for vector and raster maps
https://protomaps.com/docs/pmtiles/
BSD 3-Clause "New" or "Revised" License
2.02k stars 118 forks source link

PMTiles from OSMX database #12

Closed thisisaaronland closed 3 years ago

thisisaaronland commented 3 years ago

Am I correct in understanding that .pmtiles are derived from .osmx databases?

If that is the case is there public code/tooling to do the conversion? I've been poking around the various repos and documentation but can't seem to find it.

bdon commented 3 years ago

osmx extract will give you a .osm.pbf file that works the same way as the planet file, Geofabrik downloads, etc: https://protomaps.com/extracts

There is open source tooling like https://github.com/systemed/tilemaker to convert from PBF to MBTiles, and MBTiles to PMTiles can be performed with the python pmtiles-convert command.

thisisaaronland commented 3 years ago

Thanks, that makes sense. I've found a different hiccup in the process but filed a separate issue for that (https://github.com/protomaps/PMTiles/issues/13).