-
-
Notifications
You must be signed in to change notification settings - Fork 695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Choose a list of countries for update #60
Comments
You should be able to apply several of the geofabrik country updates but you will have to write your own script for that, you cannot use |
Do you know where can i find the "OSM minutely replication sequence number" ? |
You'll find the current one in the Instead of getting it manually, you are probably better off using osmosis mechanism for replication diffs. Once set up, it will take care of finding the correct file. Simply follow the instructions as described here, use one working directory per country and don't forget to change the base directory in each configuration.txt. Browse the update directories on the geofabrik server to find the right state file (look at the creation date). |
Just look through the directory on the server for the state file that was created the day before the OSM file you created (to give a bit of overlap) and use that state file. So if your import was from the 1st of May you'd look here: Probably safest to maintain one state per country / extract. The number might not be guaranteed to stay in sync. |
I've write this small piece of bash script to do the job
Does it seem to be ok ? |
It looks good to me. You can leave out the |
Considering this solved. I've linked to this issue from the Wiki for future reference. |
FYI: if you're getting OSC updates from geofabrik from multiple countries: this can be problematic. those updates are intended for one country only, not mixing multiple together. you can do it, but it could result in, for example, streets cut off. |
Could anybody make a better instructions how to set up Nominatim for multiple countries (not all Planet) for newbies like me? What I understand from Cinch comment that using script above is not good and data can become wrong. |
yes, from what i've gathered from various people (even from geofabrik directly): if you're using countries in Europe from geofabrik, then apply the updates of entire europe. that's how i did it. applying the diffs takes longer and uses more disk space, but it's safer. if the hard drive get's too full from all the updates, then you can safely "trim" the countries that you're not interested in. i think osmosis can do the trimming, but i haven't tried it yet. good luck :) |
Ways in Geofabrik's diffs are always complete and relations are member-complete (see here), which is sufficient for Nominatim. There are two problematic cases, you might encounter: (1) some ways from a boundary relation are missing. This won't cause Nominatim to behave badly, it just means that these relations will be missing in the DB as well. Note, however, that this is already a problem in the original extracts, so if that matters to you, you should have used the Europe extract to begin with. (2) a way or alone-standing node might get moved out of one of the extracts. That means it will appear as a delete operation in one of the diffs, so that the way/node disappears from the DB as well. I suspect that this case is rare enough that it can be ignored, but that depends on your use case. In summary: use exactly the diffs of the extracts you have initially imported with @spin0us script above. |
This is an old closed thread, but I think that visitors can still benefit from the updated script for which I created a gist: It did not seem to work for me, so I made some updates. Eventually they show that some other issue might have been going on. |
Thank you! Really helpful. |
The script by @mdeweerd doesn't work, precisely the command EDIT: got it, you need to change that line to: otherwise it won't find anything. |
Thanks to @spin0us, @mdeweerd and everybody else! Here is an updated version that works with Nominatim 3.2.0, uses HTTPS and has some other tiny improvements (less hard-coded stuff, etc.): https://gist.github.com/RhinoDevel/8a35ebd2a08166f328eca01ab005c6de |
It can also be used to update multiple diffs of the same region and then index all together? Or I need to use update.php --index after every imported diff? |
The original question was from 2013. Nominatim no longer uses osmosis, but osmium, so the instructions are likely outdated. http://nominatim.org/release-docs/latest/admin/Import-and-Update/#updates
Importing marks places as unindexed (indexed_status > 1 in the placex table). The |
Thank's, but for example: I need import 480.osc.gz, 481.osc.gz and 482.osc.gz diffs from http://download.geofabrik.de/europe-updates/000/002/. Can I import all files without indexing each file and index everything at the end once? |
In the installation wiki it is specified that we can limit the update source range using some local settings like
Is there any way to specify multiple country ou region ?
In fact i only need some countries in the update process.
The text was updated successfully, but these errors were encountered: