using changeset for larger region to update OSM data in PostGIS

المشرف العام

Administrator
طاقم الإدارة
I'm using the OSM import and update workflow described in Paul Norman's excellent answer to this question to maintain OSM data in a PostGIS database.

Import (osm2pgsql):

osm2pgsql -c -d gps -U gps --cache 8000 --number-processes 4 --slim --flat-nodes europe_nodes.bin europe-latest.osm.pbfUpdate (osmosis):

osmosis --read-replication-interval workingDirectory=/osmosisworkingdir/ --simplify-change --write-xml-change - | osm2pgsql --append -d gps -U gps --cache 1000 --number-processes 4 --slim --flat-nodes europe_nodes.bin -I want to gradually import countries into my database and keep them updated. To avoid the hastle of creating osmosis working directories for each new country and managing more and more separate updates, I would like to use changesets for a region that covers all my countries.

Example: Germany and France are imported into the database using osm2pgsql. Changesets for all of Europe are then applied daily using osmosis.

Will this work properly, considering the changeset contains irrelevant changes to data I don't have? Will this approach have any undesired consequences?



أكثر...
 
أعلى