The tool is used to import PBF file into postgis as snapshot schema
usage: osm2pgsql.py [-h] [-o OSMOSIS] [-H HOST] [-p PORT] [-u USER] [-w PASSWORD] pbf dbname
positional arguments:
pbf pbf
dbname database name
optional arguments:
-h, --help show this help message and exit
-o OSMOSIS, --osmosis OSMOSIS
osmosis search path
database connection options:
-H HOST, --host HOST database host
-p PORT, --port PORT database port
-u USER, --user USER database user
-w PASSWORD, --password PASSWORD
database password python3 osm2pgsql.py xxx.osm.pbf osmdb_xxx -H localhost -u postgres -w xxxThe password also can be set via environment variable PGPASSWORD
export PGPASSWORD=xxx