1
- .TH "OSM2PGSQL" "1" "1.11 .0" "" ""
1
+ .TH "OSM2PGSQL" "1" "2.0 .0" "" ""
2
2
.SH NAME
3
3
.PP
4
4
osm2pgsql - OpenStreetMap data to PostgreSQL converter
@@ -170,17 +170,12 @@ Include attributes of each object in the middle tables and make them
170
170
available to the outputs.
171
171
Attributes are: user name, user id, changeset id, timestamp and version.
172
172
.TP
173
- --flat-nodes=FILENAME
174
- The flat-nodes mode is a separate method to store slim mode node
175
- information on disk.
176
- Instead of storing this information in the main PostgreSQL database,
177
- this mode creates its own separate custom database to store the
178
- information.
179
- As this custom database has application level knowledge about the data
180
- to store and is not general purpose, it can store the data much more
181
- efficiently.
173
+ -F, --flat-nodes=FILENAME
174
+ Use a file on disk to store node locations instead of storing them in
175
+ memory (in non-slim mode) or in the database (in slim mode).
176
+ This is much more efficient than storing the data in the database.
182
177
Storing the node information for the full planet requires more than
183
- 300GB in PostgreSQL, the same data is stored in \[lq ] only\[rq ] 50GB
178
+ 500GB in PostgreSQL, the same data is stored in \[lq ] only\[rq ] 90GB
184
179
using the flat-nodes mode.
185
180
This can also increase the speed of applying diff files.
186
181
This option activates the flat-nodes mode and specifies the location of
@@ -189,6 +184,8 @@ It is a single large file.
189
184
This mode is only recommended for full planet imports as it doesn\[cq ] t
190
185
work well with small imports.
191
186
The default is disabled.
187
+ The file will stay on disk after import, use --drop to remove it (but
188
+ you can\[cq ] t do updates then).
192
189
.TP
193
190
--middle-schema=SCHEMA
194
191
Use PostgreSQL schema SCHEMA for all tables, indexes, and functions in
@@ -198,15 +195,9 @@ user.
198
195
By default the schema set with \f[ V ] --schema\f[ R ] is used, or
199
196
\f[ V ] public\f[ R ] if that is not set.
200
197
.TP
201
- --middle-way-node-index-id-shift=SHIFT
202
- Set ID shift for way node bucket index in middle.
203
- Experts only.
204
- See documentation for details.
205
- .TP
206
198
--middle-with-nodes
207
- Used together with the \f[B] new \f[ R ] middle database format when a flat
208
- nodes file is used to force storing nodes with tags in the database,
209
- too.
199
+ When a flat nodes file is used, nodes are not stored in the database.
200
+ Use this option to force storing nodes with tags in the database, too.
210
201
.SH OUTPUT OPTIONS
211
202
.TP
212
203
-O, --output=OUTPUT
0 commit comments