This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Update Nominatim from a custom region

0

Hi to all!

I succeeded install Nomiatim with a custom extract region that is not exist en geofabrik, then I buit it from Bbbike.

Now I want to update the database, but all instructions refers to a diff from geofabrik.

How I can update de database with a fresh data of the custom region, an not from a whole country ?

Thank you

Best regards, Carlos

asked 03 May '17, 13:32

Carlos%20Brys's gravatar image

Carlos Brys
26113
accept rate: 0%

edited 03 May '17, 13:34


One Answer:

1

You first have to download an updated extract for the same region from bbbike. Then you have two options:

  1. do a full new import. If you are concerned about the interruption of service, you can import into a new database and then drop the old database and rename the new one once you are done.
  2. use "osmium" or "osmosis" to compute the difference between the new file and the old file (which you have to keep lying around for this purpose). Then load the resulting update file into your live database (using php utils/update.php --import-diff).

Option 2 is only suitable if you are doing this frequently and the number of changes is therefore small; once the number of changed objects is in the 5% to 10% range (i.e. if you do an update and 5% of all things are new or changed) then option 1 is probably more efficient.

answered 03 May '17, 14:23

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Source code available on GitHub .