I have setup a local version of OSM database using osm2pgsql in slim mode. Now I have the following tables
I used the following command to migrate the database
Every thing is working fine. now I want to update these regularly and stay up to date with latest changes. -- Since I am using rails is there a way to update these tables programatically? I mean I can run a schedulized job and it will update it with latest changes without having to download entire osm files? -- Secondly since I am only interested in US, Canada and Mexico is there a way to fetch only these countries data? Thanks asked 25 Jul '17, 16:33 aitizazk |
If you've got a rendering server (which I'm assuming that you have) and are using mod_tile (which you may not be) then this wiki page might be useful. Even if you're not then you should be able to adapt the link to Zverik's "regional" scripts from there to cut down the updates that you apply to only North America. answered 25 Jul '17, 16:48 SomeoneElse ♦ |
crosspost: https://stackoverflow.com/questions/45310508/updating-osm-local-database-after-a-regular-interval-in-rails