[Tile-serving] [openstreetmap/osm2pgsql] How to update version 4.x database? (#762)
Klaus Tockloth
notifications at github.com
Thu Jun 1 07:19:20 UTC 2017
These are my (planned) instructions to initial import osm data into a new version 4 database:
```
psql -d gis -c 'CREATE EXTENSION postgis; CREATE EXTENSION hstore;'
osm2pgsql --username postgres --multi-geometry --hstore --slim --create --cache 32000 --number-processes 8 --database gis --style openstreetmap-carto.style --tag-transform-script openstreetmap-carto.lua dach-latest.osm.pbf
psql -d gis -f indexes.sql
```
But how to update the database? Something similar to the initial import?
```
osmosis --rri workingDirectory=./ --simplify-change --write-xml-change ./changes.osc.gz
osm2pgsql --username postgres --multi-geometry --hstore --slim --append --cache 32000 --number-processes 8 --database gis --style openstreetmap-carto.style --tag-transform-script openstreetmap-carto.lua changes.osc.gz
```
Klaus
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/762
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20170601/ca0cea6d/attachment-0001.html>
More information about the Tile-serving
mailing list