|
| 1 | +.TH "OSM2PGSQL" "1" "1.8.1" "" "" |
| 2 | +.SH NAME |
| 3 | +.PP |
| 4 | +osm2pgsql-gen - Generalize OpenStreetMap data - EXPERIMENTAL! |
| 5 | +.SH SYNOPSIS |
| 6 | +.PP |
| 7 | +\f[B]osm2pgsql-gen\f[R] [\f[I]OPTIONS\f[R]]\&... |
| 8 | +.SH DESCRIPTION |
| 9 | +.PP |
| 10 | +THIS PROGRAM IS EXPERIMENTAL AND MIGHT CHANGE WITHOUT NOTICE! |
| 11 | +.PP |
| 12 | +\f[B]osm2pgsql-gen\f[R] reads data imported by \f[B]osm2pgsql\f[R] from |
| 13 | +the database, performs various generalization steps specified by a Lua |
| 14 | +config file and writes the data back to the database. |
| 15 | +It is used in conjunction with and after \f[B]osm2pgsql\f[R] and reads |
| 16 | +the same config file. |
| 17 | +.PP |
| 18 | +This man page can only cover some of the basics and describe the command |
| 19 | +line options. |
| 20 | +See the Generalization chapter in the osm2pgsql |
| 21 | +Manual (https://osm2pgsql.org/doc/manual.html#generalization) for more |
| 22 | +information. |
| 23 | +.SH OPTIONS |
| 24 | +.PP |
| 25 | +This program follows the usual GNU command line syntax, with long |
| 26 | +options starting with two dashes (\f[C]--\f[R]). |
| 27 | +Mandatory arguments to long options are mandatory for short options too. |
| 28 | +.SH MAIN OPTIONS |
| 29 | +.TP |
| 30 | +-a, --append |
| 31 | +Run in append mode. |
| 32 | +.TP |
| 33 | +-c, --create |
| 34 | +Run in create mode. |
| 35 | +This is the default if \f[B]-a, --append\f[R] is not specified. |
| 36 | +.TP |
| 37 | +-S, --style=FILE |
| 38 | +The Lua config file. |
| 39 | +Same as for \f[B]osm2pgsql\f[R]. |
| 40 | +.TP |
| 41 | +-j, -jobs=NUM |
| 42 | +Specifies the number of parallel threads used for certain operations. |
| 43 | +Setting this to the number of available CPU cores is a reasonable |
| 44 | +starting point. |
| 45 | +.SH HELP/VERSION OPTIONS |
| 46 | +.TP |
| 47 | +-h, --help |
| 48 | +Print help. |
| 49 | +.TP |
| 50 | +-V, --version |
| 51 | +Print osm2pgsql version. |
| 52 | +.SH LOGGING OPTIONS |
| 53 | +.TP |
| 54 | +--log-level=LEVEL |
| 55 | +Set log level (`debug', `info' (default), `warn', or `error'). |
| 56 | +.TP |
| 57 | +--log-sql |
| 58 | +Enable logging of SQL commands for debugging. |
| 59 | +.SH DATABASE OPTIONS |
| 60 | +.TP |
| 61 | +-d, --database=NAME |
| 62 | +The name of the PostgreSQL database to connect to. |
| 63 | +If this parameter contains an \f[C]=\f[R] sign or starts with a valid |
| 64 | +URI prefix (\f[C]postgresql://\f[R] or \f[C]postgres://\f[R]), it is |
| 65 | +treated as a conninfo string. |
| 66 | +See the PostgreSQL manual for details. |
| 67 | +.TP |
| 68 | +-U, --username=NAME |
| 69 | +Postgresql user name. |
| 70 | +.TP |
| 71 | +-W, --password |
| 72 | +Force password prompt. |
| 73 | +.TP |
| 74 | +-H, --host=HOSTNAME |
| 75 | +Database server hostname or unix domain socket location. |
| 76 | +.TP |
| 77 | +-P, --port=PORT |
| 78 | +Database server port. |
| 79 | +.SH SEE ALSO |
| 80 | +.IP \[bu] 2 |
| 81 | +osm2pgsql website (https://osm2pgsql.org) |
| 82 | +.IP \[bu] 2 |
| 83 | +osm2pgsql manual (https://osm2pgsql.org/doc/manual.html) |
| 84 | +.IP \[bu] 2 |
| 85 | +\f[B]postgres\f[R](1) |
| 86 | +.IP \[bu] 2 |
| 87 | +\f[B]osm2pgsql\f[R](1) |
0 commit comments