OSM file formats
From OpenStreetMap Wiki
· Afrikaans · Alemannisch · aragonés · asturianu · azərbaycanca · Bahasa Indonesia · Bahasa Melayu · Bân-lâm-gú · Basa Jawa · Basa Sunda · Baso Minangkabau · bosanski · brezhoneg · català · čeština · corsu · dansk · Deutsch · eesti · English · español · Esperanto · estremeñu · euskara · français · Frysk · Gaeilge · Gàidhlig · galego · Hausa · hrvatski · Igbo · interlingua · Interlingue · isiXhosa · isiZulu · íslenska · italiano · Kiswahili · Kreyòl ayisyen · kréyòl gwadloupéyen · Kurdî · latviešu · Lëtzebuergesch · lietuvių · magyar · Malagasy · Malti · Nederlands · Nedersaksies · norsk bokmål · norsk nynorsk · occitan · Oromoo · oʻzbekcha/ўзбекча · Plattdüütsch · polski · português · română · shqip · slovenčina · slovenščina · Soomaaliga · suomi · svenska · Tagalog · Tiếng Việt · Türkçe · Vahcuengh · vèneto · Wolof · Yorùbá · Zazaki · српски / srpski · беларуская · български · қазақша · македонски · монгол · русский · тоҷикӣ · українська · Ελληνικά · Հայերեն · ქართული · नेपाली · मराठी · हिन्दी · भोजपुरी · অসমীয়া · বাংলা · ਪੰਜਾਬੀ · ગુજરાતી · ଓଡ଼ିଆ · தமிழ் · తెలుగు · ಕನ್ನಡ · മലയാളം · සිංහල · བོད་ཡིག · ไทย · မြန်မာဘာသာ · ລາວ · ភាសាខ្មែរ · ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ · አማርኛ · 한국어 · 日本語 · 中文(简体) · 中文(繁體) · 吴语 · 粵語 · ייִדיש · עברית · اردو · العربية · پښتو · سنڌي · فارسی · ދިވެހިބަސް
Other languages — Help us translate this wiki
Map-data
The most important formats are:
- OSM XML – xml-format provided by the API
- PBF Format – highly compressed, optimized binary format similar to the API
- o5m – for high-speed processing, uses PBF coding, has same structure as XML format
- OSM JSON – json variant of OSM XML
- Level0L - more human readable OSM XML without <> and lowered redundancy
Conversion between different osm map data formats
| Software | OSM XML | PBF | o5m | Discussion/Comments |
|---|---|---|---|---|
| Osmosis | yes | yes | no | |
| osmconvert | yes | yes | yes | own PBF implementation (doesn't use PBF library) |
| Osmium | yes | yes | read only | use the Osmium command line tool or see osmium_convert in examples folder |
| osm4j | yes | yes | no |
ToDO: Add matrix which tool converts with format to which target format...
Splitting one big file into different geographical regions
- Osmium command line tool (using the "extract" command)
- Osmosis
- osmconvert
- osmsplit
- splitter
- Osmcut
Filter for specific tags
File formats for diffs
| Format | Pros | Cons | Supported by |
|---|---|---|---|
| OsmChange |
When sorted properly this file is a continuous stream of changes that can be played in order. In osmosis the option --sort-change will put the change into streamable order. |
|
|
| o5c |
|
|
|
| Augmented Diffs id-sorted version |
|
| |
| JOSM_file_format |
|
|
TODO: Insert content from XML#Flavours (pros + cons, etc)
Tools for applying diffs to map data files
- osmosis
- osmconvert
- osmupdate
- Osmium command line tool (use the "apply-changes" command)
Tools for creating diff files
- osmosis
- osmconvert
- Osmium command line tool (use the "derive-changes" command)
Other variants of osm map data
- JOSM file format – non-indexed xml-format similar to the API
- OSM Binary Format
Application specific formats which are not intended to carry complete OSM data
- OSMbin (file format) – indexed, mutable binary format
- OSM Mobile Binary Format – read-only binary-format without nodes