Convert OSM to PMTILES
Turn OSM files into PMTILES. A PMTiles archive of vector tiles in Web Mercator with one layer named after the file and each feature's attributes as its properties, from zoom 0 to the deepest zoom, at most 14, at which the map spans no more than 64 tiles across.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop OSM files on the dialor turn it to pick what to do
OSM data as one PMTiles map file.Tagged nodes, ways and routes become vector tiles from zoom 0 to at most 14.
What you get
One PMTiles archive of vector tiles in Web Mercator. It holds one layer named after the file, and each feature's attributes are its properties. The tiles run from zoom 0 down to the deepest zoom, at most 14, at which the map spans no more than 64 tiles across.
A web map can read the archive straight from a file server.
How features are mapped
Tagged nodes become points. Ways become lines, or polygons when they are closed and tagged as areas. Route and multipolygon relations become multilines and multipolygons.
Common tags such as name, highway and building become columns. The other tags are kept as JSON in other_tags. Lists and nested values become JSON text.
If you convert several layers, they are joined into one, with a layer column naming where each feature came from.
What changes or is dropped
Coordinates are rounded to each zoom's tile grid, and shapes are cut at tile edges. A tile over 500 KB is written with less detail or fewer features.
Features without a geometry are left out. Untagged nodes, other relations, versions and authors are dropped.
For other formats, see every OSM conversion.
OSM and PMTILES.What each format is.
The formats
OpenStreetMap Data
OpenStreetMap nodes, ways and relations with their tags, as .osm XML or the smaller .osm.pbf.
- Extensions
- .osm .osm.pbf
- MIME type
- application
/vnd .openstreetmap .data +xml - Kind
- Text and data
PMTiles
Vector map tiles for every zoom in one PMTiles archive, which a web map reads straight from a file server.
- Extensions
- .pmtiles
- MIME type
- application
/vnd .pmtiles - Kind
- Text and data
In your code.The same OSM to PMTILES conversion through the API, for your app or your agent.
$ cv convert report.osm report.pmtiles$ cv convert report.osm report.pmtilesQuestions.What people ask about OSM to PMTILES.
Yes. OSM data comes as .osm XML or the smaller .osm.pbf, and both are the source format for this conversion.
Common tags such as name, highway and building become columns. All the other tags are kept as JSON in other_tags.
No. Versions and authors are dropped, along with untagged nodes and relations other than route and multipolygon.
A tile over 500 KB is written with less detail or fewer features. Coordinates are also rounded to each zoom's tile grid.