Importing and updating only a sub-region #2520
-
What is the proper way to import only one administrative sub-region contained in a OSM extract file? I'm performing this task with Osmconvert:
Which works fine, but with a such workflow I can't use Nominatim's auto-update features. So I'm wondering if there is an alternative way to perform such a common operation. Or should I necessarly implement an [edit: corrected url] |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
There's no tutorial or script yet that deals with non Geofabrik extracts. The If you version your I'm not sure how comm |
Beta Was this translation helpful? Give feedback.
-
openstreetmap.fr has extracts with matching minutely updates. If you use their polygons, then you likely can use those extracts directly. The extracts are at https://download.openstreetmap.fr/extracts/ and the replication files can be found below https://download.openstreetmap.fr/replication/ They should work nicely together with Nominatim's update mechanism. |
Beta Was this translation helpful? Give feedback.
There's no tutorial or script yet that deals with non Geofabrik extracts.
The
osmium
tool is a bit more powerful and you wouldn't have to deal with.poly
files. https://osmcode.org/osmium-tool/manual.html#creating-geographic-extractsIf you version your
.osm.pbf
files, e.g. by date, then you can create the change files files.osc.gz
withosmium derive-changes
and callpyosmium-get-changes
like you see inupdate_database.sh
.I'm not sure how comm