8000 GitHub - fallish/osm2pgsql: Import osm data into postgis · GitHub
[go: up one dir, main page]

Skip to content
fallishPublic

About

Import osm data into postgis

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

Introduction

The tool is used to import PBF file into postgis as snapshot schema

Usage

    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

Example

    python3 osm2pgsql.py xxx.osm.pbf osmdb_xxx -H localhost -u postgres -w xxx

The password also can be set via environment variable PGPASSWORD

    export PGPASSWORD=xxx

About

Import osm data into postgis

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0