I would like to maintain a partial mirror of the OSM database, so to be able to keep - and to fetch only the updates - of that specific area, that would be custom (the Alpine area) without the need to maintain a copy of the whole world. One purpose of that, would be to monitor daily changes for that area (simply out of curiosity), another - way more important - would be to be able to generate mapsforge map files that are very up-do-date without downloading the whole data for the area any time. I was only able to find how to run a complete Planet mirror though. Is it possible to only mirror a part of the Planet? If so, how? If that's not possible, what is the best way to keep a local OSM copy and fetch only the updates whenever I want to? There is plenty of documentation out there, but I am unable to realize what is the best road to follow (ie overpass vs postgresql, as far as I was able to understand). Thanks! asked 30 Apr '15, 14:27 Superfebs |
This method downloads the world-wide diffs, applies them to your file (so that for a moment a new tree mapped in South America would be added) but then immediately cuts out your area of interest again so that only the bits that apply to your area are saved, and you will always have a current .osm.pbf file of your region. Import into a database with osm2pgsql at will, but it's not necessary. Depends on what you want to do with the data. answered 30 Apr '15, 14:53 Frederik Ramm ♦ Thank you. I'll tackle one step at a time. For what matters the first one, is there any GUI tool to generate a .poly file? (Sorry, I am a newbie).
(30 Apr '15, 14:59)
Superfebs
@Superfebs: I guess https://wiki.openstreetmap.org/wiki/Osmosis/Polygon_Filter_File_Format will help you with this
(30 Apr '15, 15:24)
aseerel4c26 ♦
2
There is also good advice here: http://wiki.openstreetmap.org/wiki/User:EdLoach#Osmosis_to_keep_a_local_copy_of_a_.osm_file_updated and Zverik's tools are very useful https://github.com/Zverik/regional particularly limit_osc.py. JOSM or QGIS can be used to create .poly files
(30 Apr '15, 15:43)
SK53 ♦
|