Choosing a format
| Format | Best for | Notes |
|---|---|---|
| PBF | Routing, geocoding, re-rendering, import into PostGIS | Native OSM objects, nodes then ways then relations. Header carries the replication timestamp and sequence number. |
| MBTiles | Serving tiles, offline apps, quick previews | Mapbox Vector Tile, gzip, zoom 0 to 14, specification 1.3. Metadata table has the build stamp and attribution string. |
| GeoPackage | Desktop GIS, ogr2ogr conversions, analysis in Python | One table per layer, spatial index, EPSG:4326. Not built for the planet. |
| GeoParquet (beta) | Columnar analysis with DuckDB or Spark | One file per layer and country, WKB geometry, bbox column. Survey plan and above. |
Layers in schema 4.3
| Layer | Geometry | Key attributes |
|---|---|---|
roads | line | class, subclass, name, ref, oneway, surface, bridge, tunnel, layer, maxspeed |
buildings | polygon | height, min_height, levels, kind, name |
water | polygon, line | class, intermittent, name |
landuse | polygon | class (forest, farmland, residential, industrial, park ...) |
places | point | class, name, population, rank, wikidata |
poi | point | class, subclass, name, opening_hours, wheelchair (new in 4.3) |
boundaries | line | admin_level, disputed, maritime |
Names carry a name attribute in the local language and name_en where one exists. Other languages are available as name_xx attributes for 31 languages, including German, French, Spanish, Japanese and Arabic.
Zoom ranges
Roads of class motorway and trunk appear from zoom 4, all named roads from zoom 10, footpaths from zoom 13. Buildings begin at zoom 13. Points of interest are rank-filtered below zoom 14 so that a tile at zoom 12 over central Berlin stays under 200 KB uncompressed.
What is dropped
The schema step removes tags that no maintained style or router reads: for example source, note, fixme, created_by and most import-specific keys. It does not alter geometry, and it keeps IDs. Dropping those keys is why the Germany PBF is 4.6 GB while a raw geographic cut with all tags is closer to 5.9 GB.
Reading the files
osmium tags-filter germany-261105.osm.pbf w/highway=motorway -o motorways.osm.pbf
ogrinfo -so estonia-261105.gpkg roads
sqlite3 estonia-261105.mbtiles "select value from metadata where name='attribution'"
The last command prints Map data © OpenStreetMap contributors. Keep that string wherever you display the map.