<p></p>
<p dir="auto">Here is the output of <code class="notranslate">osm2pgsql --help</code>:</p>
<pre class="notranslate"><code class="notranslate">osm2pgsql -- Import OpenStreetMap data into a PostgreSQL/PostGIS database

Usage: ./osm2pgsql [OPTIONS] [OSMFILE...]

Positionals:
  OSMFILE ...                         OSM input file(s). Read manual before using multiple files!

Options:
  -h,--help                           Print this help message and exit.
  -V,--version                        Show version and exit.
  -a,--append                         Update existing osm2pgsql database (needs --slim).
  -c,--create                         Import OSM data from file into database. This is the default if --append is not used.
  -s,--slim                           Store raw OSM data in the database. Required if you want to update with --append later.


Database options:
  -d,--database DB                    Database name or PostgreSQL conninfo string.
  -U,--user USERNAME                  Database user.
  -W,--password                       Force password prompt.
  -H,--host HOST                      Database server hostname or unix domain socket location.
  -P,--port PORT                      Database server port.
  -p,--prefix PREFIX                  Prefix for table names (default: 'planet_osm').
  --schema SCHEMA                     Database schema (default: 'public').


Logging options:
  --log-level LEVEL                   Set log level ('debug', 'info' (default), 'warn', or 'error').
  --log-progress PROGRESS             Log progress to console ('true', 'false', 'auto' (default)).
  --log-sql                           Enable logging of SQL commands for debugging.
  --log-sql-data                      Enable logging of all data added to the database.
  -v,--verbose                        Enable debug logging.


Output options:
  -O,--output OUTPUT                  Set output ('pgsql' (default), 'flex', 'gazetteer' (deprecated), 'null').
  -S,--style FILE:FILE                Location of the style file. (Default: '/usr/local/share/osm2pgsql/default.style').


Pgsql output options:
  -k,--hstore Excludes: --hstore-all  Add tags without column to an additional hstore (key/value) column.
  --hstore-add-index                  Add index to hstore (key/value) column.
  -j,--hstore-all Excludes: --hstore  Add all tags to an additional hstore (key/value) column.
  -z,--hstore-column NAME ...         Add additional hstore (key/value) column.
  --hstore-match-only                 Only keep objects that have a non-NULL value in one of the columns.
  -K,--keep-coastlines                Keep coastline data (default: discard objects tagged natural=coastline).
  -l,--latlong                        Store data in degrees of latitude & longitude (WGS84).
  -m,--merc                           Store data in Web Mercator [EPSG 3857]. This is the default if --latlong or --proj are not used.
  -G,--multi-geometry                 Generate multi-geometry features in database tables.
  --output-pgsql-schema SCHEMA        Database schema for pgsql output tables (default: setting of --schema).
  -E,--proj SRID                      Use projection EPSG:SRID.
  --reproject-area                    Compute area column using Web Mercator coordinates.
  --tag-transform-script SCRIPT       Specify a Lua script to handle tag filtering and normalisation.


Expire options:
  --expire-bbox-size SIZE             Max size for a polygon to expire the whole polygon, not just the boundary (default: 20000).
  -o,--expire-output FILE             Output filename for expired tiles list.
  -e,--expire-tiles [MINZOOM-]MAXZOOM Create a tile expiry list. Zoom levels must be larger than 0 and smaller than 32.


Middle options:
  -C,--cache SIZE                     Use up to SIZE MB for caching nodes (default: 800).
  --drop                              Drop middle tables after import (needs --slim).
  -x,--extra-attributes               Include attributes (version, timestamp, changeset id, user id, and user name) for each OSM object.
  -F,--flat-nodes FILE                File for storing node locations (needs --slim, default: store in database).
  --middle-schema SCHEMA              Database schema for middle tables (default: setting of --schema).
  --middle-database-format FORMAT     Set middle db format ('legacy' (default), 'new').
  --middle-with-nodes                 Store tagged nodes in db (new middle db format only).


Input options:
  -b,--bbox MINX,MINY,MAXX,MAXY       Apply a bounding box filter on the imported data, e.g. '--bbox -0.5,51.25,0.5,51.75'.
  -r,--input-reader FORMAT            Input format ('xml', 'pbf', 'o5m', 'opl', 'auto' - autodetect format (default)).


Advanced options:
  -I,--disable-parallel-indexing      Disable concurrent index creation.
  --middle-way-node-index-id-shift N  Set ID shift for bucket index.
  --number-processes NUM:INT bounded to [1 - 32]
                                      Specifies the number of parallel processes used for certain operations (default: number of CPUs).


Tablespace options:
  -i,--tablespace-index TBLSPC        Tablespace for indexes (sets default for --tablespace-(main|slim)-index).
  --tablespace-main-data TBLSPC       Tablespace for main tables.
  --tablespace-main-index TBLSPC      Tablespace for main indexes.
  --tablespace-slim-data TBLSPC       Tablespace for slim mode tables.
  --tablespace-slim-index TBLSPC      Tablespace for slim mode indexes.


Deprecated options:
  --cache-strategy TYPE               The option has been removed and only a warning is printed.
  --with-forward-dependencies BOOL    Propagate changes from nodes to ways and node/way members to relations (default: true).
</code></pre>
<p dir="auto">And this is the output of <code class="notranslate">osm2pgsq-gen --help</code>:</p>
<pre class="notranslate"><code class="notranslate">osm2pgsql-gen -- Generalize OpenStreetMap data

Usage: ./osm2pgsql-gen [OPTIONS]

Options:
  -h,--help                   Print this help message and exit.
  -V,--version                Show version and exit.
  -a,--append                 Run in append mode.
  -S,--style FILE             The Lua config/style file (same as for osm2pgsql).
  -j,--jobs NUM:INT in [1 - 256]
                              Number of parallel jobs (default: 1, max 256).


Database options:
  -d,--database DB            Database name or PostgreSQL conninfo string.
  -U,--user USERNAME          Database user.
  -W,--password               Force password prompt.
  -H,--host HOST              Database server hostname or unix domain socket location.
  -P,--port PORT              Database server port.
  --middle-schema SCHEMA      Database schema for middle tables (default: setting of --schema).
  --schema SCHEMA             Database schema (default: 'public').


Logging options:
  --log-level LEVEL           Set log level ('debug', 'info' (default), 'warn', or 'error').
  --log-progress PROGRESS     Log progress to console ('true', 'false', 'auto' (default)).
  --log-sql                   Enable logging of SQL commands for debugging.
  --log-sql-data              Enable logging of all data added to the database.
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/osm2pgsql-dev/osm2pgsql/pull/2115#issuecomment-1867435881">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353X3MEKE2PKU2RTGCRDYKVFOBAVCNFSM6AAAAABA7RXCO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRXGQZTKOBYGE">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353TBYB5AJH7KDFMQTITYKVFOBA5CNFSM6AAAAABA7RXCO2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTPJ3HWS.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><osm2pgsql-dev/osm2pgsql/pull/2115/c1867435881</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/osm2pgsql-dev/osm2pgsql/pull/2115#issuecomment-1867435881",
"url": "https://github.com/osm2pgsql-dev/osm2pgsql/pull/2115#issuecomment-1867435881",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>