Vector Maps - Data Import


Database setup

I use my own postgis-container with the latest versions and some useful extensions.

Importing OSM-Data

Importing of geospatial data will be done with Imposm 3. It has some additional features over OSM2pgsql that might be useful:

  • Generalizing/Simplification of data to create low-resolution data from existing tables that can be used for small zoom levels.
  • regex-ing of content/names/whatever
  • custom SQL-Filter

Import with Imposm requires a mapping-file where you can define what features are imported. You can also implement some advanced filtering mechanism and even have

The import script and additional files can be found here.

Import of a small sample pbf file (14MB) takes around 10s