OSM2PGSQL(1)

πŸ“¦
version 2.3.1 Β· 3 versions
, in nixpkgs unstable, ubuntu stonking

πŸ’… OSM2PGSQL-GEN β€” like, the manual page bestie

okay so this is the man page for osm2pgsql-gen, which lives under the big OSM2PGSQL(1) umbrella. Section 1, obviously. Sit down, grab a snack, we're doing generalization πŸ¦‹


✨ NAME ✨

osm2pgsql-gen β€” generalize OpenStreetMap data β€” EXPERIMENTAL! like, for real for real πŸ§ͺ


🌸 SYNOPSIS 🌸

osm2pgsql-gen [OPTIONS]...

πŸ’– DESCRIPTION πŸ’–

THIS PROGRAM IS EXPERIMENTAL AND MIGHT CHANGE WITHOUT NOTICE! bestie I am not kidding, it can switch up on you any time πŸ’€

osm2pgsql-gen reads data that osm2pgsql already imported, pulls it out of the database, does a whole bunch of generalization steps that a Lua config file tells it to do, and then writes the data back into the database. It works with osm2pgsql and runs after it, and yeah β€” it reads the exact same config file. twin behavior fr 🫢

Heads up though: this man page can only cover, like, some of the basics plus the command line options. For the full tea, go read the Generalization chapter in the osm2pgsql Manual. this page is the appetizer, not the meal ✨


πŸ‘‘ OPTIONS πŸ‘‘

This program follows the usual GNU command line syntax, so long options start with two dashes (--). And mandatory arguments to long options are mandatory for short options too β€” no cutting corners, no cap πŸ’…

πŸ”₯ MAIN OPTIONS πŸ”₯

  • -a, --append β€” run in append mode. The default is to run in create mode, so if you want append you gotta ask for it.
  • -S, --style=FILE β€” the Lua config file. Same as for osm2pgsql. Usually you don't even need it, because it gets read from the osm2pgsql_properties table. convenient much? 😌
  • -j, -jobs=NUM β€” how many parallel threads get used for certain operations. Setting it to the number of CPU cores you've got is a reasonable starting point. Minimum value and default is 1, maximum value is 256. she does have a ceiling, bestie.

πŸŽ€ HELP/VERSION OPTIONS πŸŽ€

  • -h, --help β€” print help.
  • -V, --version β€” print osm2pgsql version.

πŸ¦‹ LOGGING OPTIONS πŸ¦‹

  • --log-level=LEVEL β€” set the log level (debug, info (default), warn, or error).
  • --log-sql β€” enable logging of SQL commands for debugging. for when you need to see everything πŸ‘€

🌈 DATABASE OPTIONS 🌈

  • -d, --database=NAME β€” the name of the PostgreSQL database to connect to. If this parameter contains an = sign, or starts with a valid URI prefix (postgresql:// or postgres://), it is treated as a conninfo string. See the PostgreSQL manual for details.
  • -U, --username=NAME β€” PostgreSQL user name.
  • -W, --password β€” force password prompt. your secrets stay yours πŸ”
  • -H, --host=HOSTNAME β€” database server hostname or unix domain socket location.
  • -P, --port=PORT β€” database server port.
  • --schema=SCHEMA β€” the default for various schema settings throughout osm2pgsql-gen (default: public). The schema must exist in the database and be writable by the database user. It must be the same as the one used with osm2pgsql β€” matching sets, periodt.
  • --middle-schema=SCHEMA β€” the database schema where the osm2pgsql_properties table is to be found. Default is set with --schema. Set it to the same value as on the osm2pgsql command line.

πŸ’œ SEE ALSO πŸ’œ


and that's the whole vibe, bestie 🫢 this was version 2.3.1 of the OSM2PGSQL(1) page β€” go generalize something iconic βœ¨πŸ‘‘

πŸ“¦ where this page comes from