Hachureextracts and tiles from OpenStreetMap
Hachure / Docs / Formats and schema

Formats and schema

What each container holds, which layers and attributes exist in schema 4.3, and how it differs from raw OpenStreetMap.

Last reviewed 2026-11-03

Choosing a format

FormatBest forNotes
PBFRouting, geocoding, re-rendering, import into PostGISNative OSM objects, nodes then ways then relations. Header carries the replication timestamp and sequence number.
MBTilesServing tiles, offline apps, quick previewsMapbox Vector Tile, gzip, zoom 0 to 14, specification 1.3. Metadata table has the build stamp and attribution string.
GeoPackageDesktop GIS, ogr2ogr conversions, analysis in PythonOne table per layer, spatial index, EPSG:4326. Not built for the planet.
GeoParquet (beta)Columnar analysis with DuckDB or SparkOne file per layer and country, WKB geometry, bbox column. Survey plan and above.

Layers in schema 4.3

LayerGeometryKey attributes
roadslineclass, subclass, name, ref, oneway, surface, bridge, tunnel, layer, maxspeed
buildingspolygonheight, min_height, levels, kind, name
waterpolygon, lineclass, intermittent, name
landusepolygonclass (forest, farmland, residential, industrial, park ...)
placespointclass, name, population, rank, wikidata
poipointclass, subclass, name, opening_hours, wheelchair (new in 4.3)
boundarieslineadmin_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.