Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 637 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 637 Bytes

docker-osmupdater

A Docker container that includes osmium and osm2pgsql for OpenStreetMap replication

Usage

Example of piping osmium to osm2pgsql

docker run -it -v $(pwd):/var/lib/osm nickpeihl/osmupdater \
osmosis --read-replication-interval workingDirectory=/var/lib/osm \
--simplify-change --write-xml-change - | osm2pgsql --append --slim \
--database gis --flat-nodes /var/lib/osm/nodes.cache -C 2000 \
--number-processes 4 --hstore --style /var/lib/osm/osm.style \
--tag-transform-script /var/lib/osm/osm.lua -r xml -

See this tutorial for more info.