OSMIUM-OUTPUT-HEADERS(5)
β¨ OSMIUM-OUTPUT-HEADERS β¨
okay bestie, gather round, because this is the manual page for osmium-output-headers (section 5 of the manual, iykyk) and it's all about the header options you can set on your output files. yes, the actual vibes of your file's metadata. it's giving very behind-the-scenes but honestly so important π
πΈ DESCRIPTION πΈ
so most osmium commands that write OSM files can set values in the file header of the OSM file, and they do it with the --output-header option. that's it. that's the whole door. πͺβ¨
the format is generally:
--output-header=OPTION=VALUE
and for some commands you can use this special lil format:
--output-header=OPTION!
(that's an exclamation mark after the OPTION and no value set, okay?) and what that does is set the value to the same as in the input file. cute, right? π₯° but fr, check the individual command man pages to see where this is actually allowed, because it's not a universal thing.
π HEADER OPTIONS π
here's the full roster, no skips, no cuts:
generatorβ sets the "generator program" value. the default isosmium/VERSION. you can also set this using the--generatoroption instead. (XML and PBF files only.)xml_josm_uploadβ the value of theuploadattribute on theosmXML element (trueorfalse), for use in JOSM. (XML files only.)osmosis_replication_timestampβ the timestamp used in replication. (PBF files only.)osmosis_replication_sequence_numberβ the sequence number used in replication. (PBF files only.)osmosis_replication_base_urlβ the base URL for change files used in replication. (PBF files only.)sortingβ sets theSort.Type_then_IDproperty in the PBF header, but only if it's set toType_then_ID. other values are currently not supported. (PBF files only.)
β οΈ bestie listen to me. settingsortingonly sets the header option β it does NOT actually sort the file! do not come crying to me. if you want your file actually sorted, useosmium sortfor that. periodt. π
π¦ EXAMPLES π¦
copy the file in.osm.pbf to out.osm.pbf while setting the generator to myscript:
osmium cat --output-header=generator=myscript -o out.osm.pbf in.osm.pbf
look at that. one line. ate. π₯
π SEE ALSO π
osmium(1)- Osmium website
- Replication headers
π COPYRIGHT π
Copyright (C) 2013-2026 Jochen Topf <jochen@topf.org>.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
π«Ά CONTACT π«Ά
if you have any questions or want to report a bug, please go to <https://osmcode.org/contact.html>
π AUTHORS π
Jochen Topf <jochen@topf.org>.
okay that's the whole page, you made it, I'm so proud of you π₯Ήπ this was version 1.19.1 of OSMIUM-OUTPUT-HEADERS(5), go forth and set your headers correctly bestie, no cap β¨
π¦ where this page comes from
- fedora 44: osmium-tool 1.19.1-1.fc44 Β· GPL-3.0-only
- nixos 26.05: osmium-tool 1.19.1
- nixpkgs unstable: osmium-tool 1.19.1
- ubuntu stonking: osmium-tool 1.19.1-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms