A Docker container that includes osmium and osm2pgsql for OpenStreetMap replication
362
A Docker container that includes osmium and osm2pgsql for OpenStreetMap replication
Example of piping osmium to osm2pgsql
docker run \
-it \
--rm \
-v $(pwd):/var/lib/osm \
sophox/osm2pgsql_osmium \
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.
Content type
Image
Digest
Size
92.1 MB
Last updated
over 7 years ago
docker pull sophox/osm2pgsql_osmium