OSM PBF Foreign Data Wrapper
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
doc
examples
sql
src
tests
.drone.yml
.gitignore
.travis.yml
META.json
Makefile
README.md
osm_fdw.control

README.md

OSM PBF Foreign Data Wrapper

Introduction

This extension for PostgreSQL implements Foreign Data Wrapper (FDW) for reading Openstreetmap PBF file format (*.osm.pbf)

Requirements

* postgresql version => 9.6 (tested with 9.6 and 10)
* libprotobuf-c
* json-c >= 0.11
* zlib

Install

How to install in Debian 9

sudo apt-get install postgresql-server-dev libjson-c-dev libjson-c3 libprotobuf-c-dev libprotobuf-c-compiler libprotobuf-c1 zlib1g-dev zlib1g
sudo make install

Install with PGXN

Install required packages before and next run:

sudo pgxn install osm_fdw

Addition parameters

If you want to use not default version of postgres in your system, you can specify pg_config

sudo make PG_CONFIG=/usr/lib/postgresql/10/bin/pg_config install

Documentation

Find more documentation here: osm_fdw doc

Examples

Find more examples here: examples

Support

(Issues trackes) Email: v.pikulik@gmail.com

Author

Vitali Pikulik v.pikulik@gmail.com