OSMUPDATE(1)
π NAME π
osmupdate β update OSM files β¨
π SYNOPSIS π
osmupdate options [oldfile] [newfile]
πΈ DESCRIPTION πΈ
okay so this program is literally the glow-up artist for your .osm, .o5m or .pbf file. it downloads OSM Change files (.osc) from the servers of "planet.openstreetmap.org" and applies them for you. π
and get this β it can also assemble a brand new .osc or .o5c file, which you can then use to update your OSM data file at a later time. future-proofing your data? we love to see it. π¦
Prequesites
before you run this, bestie, you gotta download and install two other programs first: "osmconvert" and "wget". no skipping, they're the supporting cast. π«Ά
Usage
two command line arguments are mandatory: the name of the old and the name of the new OSM data file. periodt. π
if the old data file does not have a file timestamp, you may want to specify this timestamp manually on the command line. if you don't, the program will try to determine the timestamp by examining the whole old data file. it's giving detective energy π.
instead of the second parameter, you alternatively may specify the name of a change file (.osc or .o5c). in this case, you also may replace the name of the old OSM data file by a timestamp. π
command line arguments which are not recognized by osmupdate will be passed to osmconvert. use this opportunity to supply a bounding box or a bounding polygon if you are going to update a regional change file. you also may exclude unneeded meta data from your file by specifying this osmconvert option: --drop-author.
β¨ OPTIONS β¨
the program osmupdate recognizes a few command line options:
--max-days=UPDATE_RANGEβ by default, the maximum time range for to assemble a cumulated changefile is 250 days. you can change this by giving a different maximum number of days, for example 300. if you do, please ensure that there are daily change files available for such a wide range of time. π--minute,--hour,--day,--sporadicβ by default,osmupdateuses a combination of minutely, hourly and daily changefiles. if you want to limit these changefile categories, use one or two of these options and choose that category/ies you want to be used. the option--sporadicallows processing changefile sources which do not have the usual "minute", "hour" and "day" subdirectories.--max-merge=COUNTβ the subprogramosmconvertis able to merge more than two changefiles in one run, and this ability increases merging speed. unfortunately, every changefile consumes about 200 MB of main memory while being processed. for this reason, the number of parallelly processable changefiles is limited. use this commandline argument to determine the maximum number of parallelly processed changefiles. the default value is 7.-t=TEMPPATH,--tempfiles=TEMPPATHβ on order to cache changefiles,osmupdateneeds a separate directory. this parameter defines the name of this directory, including the prefix of the tempfiles' names. the default value is "osmupdate_temp/temp".--keep-tempfilesβ use this option if you want to keep local copies of every downloaded file. this is strongly recommended if you are going to assemble different changefiles which overlap in time ranges β your data traffic will be minimized. π«Ά
Do not invoke this option if you are going to use different change file sources (option --base-url). this would cause severe data corruption. π
--trust-tempfilesβ use this option if you want to use the saved local copies of already downloaded changefiles without checking their lengths against to their server-hosted originals. downloads will be limited to files not saved yet.
Do not invoke this option if you suspect incomplete downloads.
--compression-level=LEVELβ define level for gzip compression. values between 1 (low compression, but fast) and 9 (high compression, but slow).--base-url=BASE_URLβ to accelerate downloads or to get regional file updates you may specify an alternative download location. please enter its URL, or simply the word "mirror" if you want to use gwdg's planet server.--base-url-suffix=BASE_URL_SUFFIXβ to use old planet URLs, you may need to add the suffix "-replicate" because it was custom to have this word in the URL, right after the period identifier "day" etc.-v,--verboseβ with activated 'verbose' mode, some statistical data and diagnosis data will be displayed. if-vresp.--verboseis the first parameter in the line,osmupdatewill display all input parameters. π
π NOTES π
this program is for experimental use. expect malfunctions and data loss. do not use the program in productive or commercial systems. i am not being dramatic, that is what it says. π
there is NO WARRANTY, to the extent permitted by law. please send any bug reports to marqqs@gmx.eu.
π₯ EXAMPLE π₯
osmupdate old_file.o5m new_file.o5m
osmupdate old_file.pbf new_file.pbf
osmupdate old_file.osm new_file.osm
the old OSM data will be updated and written as new_file.o5m or new_file.o5m. for safety reasons osmupdate will not delete the old file. if you do not need it as backup file, please delete it by yourself.
osmupdate old_file.osm 2011-07-15T23:30:00Z new_file.osm
osmupdate old_file.osm NOW-86400 new_file.osm
if your old OSM data file does not contain a file timestamp, or you do not want to rely on this timestamp, it can be specified manually. relative times are in seconds to NOW.
osmupdate old_file.o5m change_file.o5c
osmupdate old_file.osm change_file.osc
osmupdate 2011-07-15T23:30:00Z change_file.o5c
osmupdate 2011-07-15T23:30:00Z change_file.osc.gz
osmupdate NOW-3600 change_file.osc.gz
here, the old OSM data file is not updated directly. an OSM changefile is written instead. this changefile can be used to update the OSM data file afterwards. you will have recognized the extension .gz in the last example. in this case, the OSM Change file will be written with gzip compression. to accomplish this, you need to have the program gzip installed on your system.
./osmupdate london_old.o5m london_new.o5m -B=london.poly
the OSM data file london_old.o5m will be updated. hence the downloaded OSM changefiles contain not only London, but the whole planet, a lot of unneeded data will be added to this regional file. the -B= argument will clip these superfluous data. βοΈ
π¦ SEE ALSO π¦
π AUTHORS π
osmconvert was written by Markus Weber
and that's the whole page, bestie π this one shipped as part of the General Commands Manual, dated September 2013, and it signs off as OSMUPDATE(1). go update something iconic. πβ¨
π¦ where this page comes from
- debian bookworm: osmctools 0.9-4 Β· AGPL-3.0-only
- debian trixie: osmctools 0.9-5 Β· AGPL-3.0-only
- epel 10: osmctools 0.9-16.el10_0 Β· AGPL-3.0-only AND GPL-2.0-or-later
- epel 9: osmctools 0.9-12.el9 Β· AGPLv3 and GPLv2+
- fedora 43: osmctools 0.9-19.fc43 Β· AGPL-3.0-only AND GPL-2.0-or-later
- fedora 44: osmctools 0.9-21.fc44 Β· AGPL-3.0-only AND GPL-2.0-or-later
- ubuntu jammy: osmctools 0.9-3 Β· AGPL-3.0-only
- ubuntu noble: osmctools 0.9-4 Β· AGPL-3.0-only
- ubuntu questing: osmctools 0.9-5
- ubuntu resolute: osmctools 0.9-5build1 Β· AGPL-3.0-only
- ubuntu stonking: osmctools 0.9-5build1 Β· AGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms