1OSMIUM-CAT(1)                                                    OSMIUM-CAT(1)
2
3
4

NAME

6       osmium-cat - concatenate OSM files and convert to different formats
7

SYNOPSIS

9       osmium cat [OPTIONS] OSM-FILE...
10

DESCRIPTION

12       Concatenates  all input files and writes the result to the output file.
13       The data is not sorted in any way but strictly  copied  from  input  to
14       output.
15
16       Because  this  program supports several different input and output for‐
17       mats, it can be used to convert OSM files from one format into another.
18
19       This commands reads its input file(s) only once and writes  its  output
20       file  in  one go so it can be streamed, ie.  it can read from STDIN and
21       write to STDOUT.
22

OPTIONS

24       -t, --object-type=TYPE
25              Read only objects of given type (node,  way,  relation,  change‐
26              set).   By default all types are read.  This option can be given
27              multiple times.
28

COMMON OPTIONS

30       -h, --help
31              Show usage help.
32
33       -v, --verbose
34              Set verbose mode.  The program  will  output  information  about
35              what it is doing to STDERR.
36
37       --progress
38              Show  progress bar.  Usually a progress bar is only displayed if
39              STDOUT and STDERR are detected to be TTY.  With  this  option  a
40              progress  bar  is  always  shown.  Note that a progress bar will
41              never be shown when reading from STDIN or a pipe.
42
43       --no-progress
44              Do not show progress bar.  Usually a progress bar  is  displayed
45              if STDOUT and STDERR are detected to be a TTY.  With this option
46              the progress bar is suppressed.  Note that a progress  bar  will
47              never be shown when reading from STDIN or a pipe.
48

INPUT OPTIONS

50       -F, --input-format=FORMAT
51              The  format  of the input file(s).  Can be used to set the input
52              format if it can’t be autodetected from the file name(s).   This
53              will  set the format for all input files, there is no way to set
54              the format for some  input  files  only.   See  osmium-file-for‐
55              mats(5) or the libosmium manual for details.
56

OUTPUT OPTIONS

58       -f, --output-format=FORMAT
59              The  format  of  the output file.  Can be used to set the output
60              file format if it can’t be autodetected  from  the  output  file
61              name.   See  osmium-file-formats(5)  or the libosmium manual for
62              details.
63
64       --fsync
65              Call fsync after writing the output file to force flushing  buf‐
66              fers to disk.
67
68       --generator=NAME
69              The  name and version of the program generating the output file.
70              It will be added to the header of the output file.   Default  is
71osmium/” and the version of osmium.
72
73       -o, --output=FILE
74              Name of the output file.  Default is `-' (STDOUT).
75
76       -O, --overwrite
77              Allow  an  existing  output  file  to  be overwritten.  Normally
78              osmium will refuse to write over an existing file.
79
80       --output-header=OPTION=VALUE
81              Add output header option.  This command line option can be  used
82              multiple  times for different OPTIONs.  See the libosmium manual
83              for a list of available header options.  For some  commands  you
84              can  use  the special format “OPTION!” (ie.  an exclamation mark
85              after the OPTION and no value set) to set the value to the  same
86              as in the input file.
87

DIAGNOSTICS

89       osmium cat exits with exit code
90
91       0      if everything went alright,
92
93       1      if there was an error processing the data, or
94
95       2      if there was a problem with the command line arguments.
96

MEMORY USAGE

98       osmium  cat  does all its work on the fly and doesn’t keep much data in
99       main memory.
100

EXAMPLES

102       Convert a PBF file to a compressed XML file:
103
104              osmium cat -o out.osm.bz2 in.osm.pbf
105
106       Concatenate all change files in the `changes' directory into one:
107
108              osmium cat -o all-changes.osc.gz changes/*.osc.gz
109
110       Copy nodes and ways from source to destination file:
111
112              osmium cat -o dest.osm.pbf source.osm.pbf -t node -t way
113

SEE ALSO

115       · osmium(1), osmium-file-formats(5)
116
117       · Osmium website (https://osmcode.org/osmium-tool/)
118
120       Copyright (C) 2013-2019 Jochen Topf <jochen@topf.org>.
121
122       License     GPLv3+:     GNU     GPL     version     3     or      later
123       <https://gnu.org/licenses/gpl.html>.   This  is  free software: you are
124       free to change and redistribute it.   There  is  NO  WARRANTY,  to  the
125       extent permitted by law.
126

CONTACT

128       If  you  have  any  questions  or  want  to  report a bug, please go to
129       https://osmcode.org/contact.html
130

AUTHORS

132       Jochen Topf <jochen@topf.org>.
133
134
135
136                                    1.11.1                       OSMIUM-CAT(1)
Impressum