Skip to content

Commit d8a29e7

Browse files
committed
Add docs for recently introduced new middle command line options
1 parent 37aae6c commit d8a29e7

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

docs/osm2pgsql.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,19 @@ mandatory for short options too.
171171
: Set ID shift for way node bucket index in middle. Experts only. See
172172
documentation for details.
173173

174+
\--middle-database-format=FORMAT
175+
: Set the database format for the middle tables to FORMAT. Allowed formats
176+
are **legacy** and **new**. The **legacy** format is the old format that
177+
will eventually be deprecated and removed but is currently still the
178+
default. The **new** format was introduced in version 1.9.0 and is still
179+
experimental. See the manual for details on these formats. (Only works
180+
with **\--slim**. In append mode osm2pgsql will automatically detect the
181+
database format, so don't use this with **-a, \--append**.)
182+
183+
\--middle-with-nodes
184+
: Used together with the **new** middle database format when a flat nodes
185+
file is used to force storing nodes with tags in the database, too.
186+
174187
# OUTPUT OPTIONS
175188

176189
-O, \--output=OUTPUT

src/command-line-parser.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ Middle options:\n\
183183
id, timestamp and version) for each object in the database.\n\
184184
--middle-schema=SCHEMA Schema to use for middle tables (default: none).\n\
185185
--middle-way-node-index-id-shift=SHIFT Set ID shift for bucket index.\n\
186+
--middle-database-format=FORMAT Set middle db format (default: legacy).\n\
187+
--middle-with-nodes Store tagged nodes in db (new middle db format only).\n\
186188
\n\
187189
Pgsql output options:\n\
188190
-i|--tablespace-index=TBLSPC The name of the PostgreSQL tablespace where\n\

0 commit comments

Comments
 (0)