britiger / osm_address_db

Importing addresses into postgres using imposm3, the website uses the collection of scripts, shows data from Brandenburg, Germany
https://addresses.lorenz.lu/
10 stars 1 forks source link
adress database imposm osm osm2pgsql osmconvert osmupdate postgis postgres

osm_address_db

This collection of scripts is for importing osm data to a postgre database for analyse address data.

Requirements

For using the following scripts you need a postgresql database version 12 or above including a suitable postgis extension. You can create a databse using the prepared SQL script located at sql/create_db.sql. You also need the current imposm3 (>=0.4.0) for importing the data, for more informiation see tools/.

Before starting the import you need to copy the file config.sample into config. You have to create an empty database with postgis extension enabled. In the config file you have to set the database parameter and the source file of the osm pbf file. If you want to update the database in the future without a complete reimport you have to set the url and sequence of the diff files.

You also need osmupdate which need also osmconvert. You can install this tools in your $PATH or in the tools/ directory. If the tools don't exists, the script will try to download and compile them using cc compiler.

Programs

Old Tools

Others