1OSMIUM-ADD-LOCATIONS-TO-WAYS(1)                OSMIUM-ADD-LOCATIONS-TO-WAYS(1)
2
3
4

NAME

6       osmium-add-locations-to-ways - add node locations to ways in OSM file
7

SYNOPSIS

9       osmium add-locations-to-ways [OPTIONS] OSM-FILE...
10

DESCRIPTION

12       Usually only nodes have locations and the ways refer to those locations
13       via the IDs of the nodes.  This program will copy the input file(s)  to
14       the  output, taking the locations from the nodes and adding them to the
15       ways.  This makes it easier for other  programs  to  assemble  the  way
16       geometries.
17
18       The  input  file  must contain all nodes needed for the ways, otherwise
19       there will be an error.   You  can  change  this  behaviour  using  the
20       --ignore-missing-nodes option.
21
22       Nodes  without any tags will not be copied (unless the --keep-untagged-
23       nodes/-n option is used).  The size of the output file will be  similar
24       or  a  bit  smaller  than  the  input file (unless the --keep-untagged-
25       nodes/-n option is used in which case it will be a lot bigger).
26
27       Note that the OSM files generated by this command  use  a  non-standard
28       format extension.
29
30       The  osmium  add-locations-to-ways  command has to keep an index of the
31       node locations in memory or in a temporary file on disk while doing its
32       work.   There are several different ways it can do that which have dif‐
33       ferent advantages and disadvantages.  The default is  good  enough  for
34       most cases, but see the osmium-index-types(5) man page for details.
35
36       If  the  --keep-untagged-nodes/-n option is used, files created by this
37       command can be updated with the apply-changes command using the --loca‐
38       tions-on-ways option.
39
40       This command will not work on full history files.
41
42       This  commands  reads its input file(s) only once and writes its output
43       file in one go so it can be streamed, ie.  it can read from  STDIN  and
44       write to STDOUT.
45

OPTIONS

47       -i, --index-type=TYPE
48              Set  the  index type.  For details see the osmium-index-types(5)
49              man page.
50
51       -I, --show-index-types
52              Shows a list of available index  types.   For  details  see  the
53              osmium-index-types(5) man page.
54
55       -n, --keep-untagged-nodes
56              Keep the untagged nodes in the output file.
57
58       --ignore-missing-nodes
59              If this is not set a missing node needed for a way results in an
60              error.  If this is set, errors are ignored and the way will have
61              an invalid location set for the missing node.
62

COMMON OPTIONS

64       -h, --help
65              Show usage help.
66
67       -v, --verbose
68              Set  verbose  mode.   The  program will output information about
69              what it is doing to STDERR.
70
71       --progress
72              Show progress bar.  Usually a progress bar is only displayed  if
73              STDOUT  and  STDERR  are detected to be TTY.  With this option a
74              progress bar is always shown.  Note that  a  progress  bar  will
75              never be shown when reading from STDIN or a pipe.
76
77       --no-progress
78              Do  not  show progress bar.  Usually a progress bar is displayed
79              if STDOUT and STDERR are detected to be a TTY.  With this option
80              the  progress  bar is suppressed.  Note that a progress bar will
81              never be shown when reading from STDIN or a pipe.
82

INPUT OPTIONS

84       -F, --input-format=FORMAT
85              The format of the input file(s).  Can be used to set  the  input
86              format  if it can’t be autodetected from the file name(s).  This
87              will set the format for all input files, there is no way to  set
88              the  format  for  some  input  files only.  See osmium-file-for‐
89              mats(5) or the libosmium manual for details.
90

OUTPUT OPTIONS

92       -f, --output-format=FORMAT
93              The format of the output file.  Can be used to  set  the  output
94              file  format  if  it  can’t be autodetected from the output file
95              name.  See osmium-file-formats(5) or the  libosmium  manual  for
96              details.
97
98       --fsync
99              Call  fsync after writing the output file to force flushing buf‐
100              fers to disk.
101
102       --generator=NAME
103              The name and version of the program generating the output  file.
104              It  will  be added to the header of the output file.  Default is
105osmium/” and the version of osmium.
106
107       -o, --output=FILE
108              Name of the output file.  Default is `-' (STDOUT).
109
110       -O, --overwrite
111              Allow an existing  output  file  to  be  overwritten.   Normally
112              osmium will refuse to write over an existing file.
113
114       --output-header=OPTION=VALUE
115              Add  output header option.  This command line option can be used
116              multiple times for different OPTIONs.  See the libosmium  manual
117              for  a  list of available header options.  For some commands you
118              can use the special format “OPTION!” (ie.  an  exclamation  mark
119              after  the OPTION and no value set) to set the value to the same
120              as in the input file.
121

DIAGNOSTICS

123       osmium add-locations-to-ways exits with exit code
124
125       0      if everything went alright,
126
127       1      if there was an error processing the data, or
128
129       2      if there was a problem with the command line arguments.
130

MEMORY USAGE

132       osmium add-locations-to-ways will usually keep all  node  locations  in
133       memory.  For larger data files, this can need several tens of GBytes of
134       memory.  See the osmium-index-types(5) man page for details.
135

EXAMPLES

137       Add node locations to an extract keeping all nodes:
138
139              osmium add-locations-to-ways -n -o germany-low.osm.pbf germany.osm.pbf
140
141       Add node locations to a planet file (without untagged nodes):
142
143              osmium add-locations-to-ways -i dense_mmap_array -o planet-low.osm.pbf planet.osm.pbf
144

SEE ALSO

146       · osmium(1), osmium-file-formats(5), osmium-index-types(5)
147
148       · Osmium website (https://osmcode.org/osmium-tool/)
149
151       Copyright (C) 2013-2020 Jochen Topf <jochen@topf.org>.
152
153       License     GPLv3+:     GNU     GPL     version     3     or      later
154       <https://gnu.org/licenses/gpl.html>.   This  is  free software: you are
155       free to change and redistribute it.   There  is  NO  WARRANTY,  to  the
156       extent permitted by law.
157

CONTACT

159       If  you  have  any  questions  or  want  to  report a bug, please go to
160       https://osmcode.org/contact.html
161

AUTHORS

163       Jochen Topf <jochen@topf.org>.
164
165
166
167                                    1.12.1     OSMIUM-ADD-LOCATIONS-TO-WAYS(1)
Impressum