I want to create a clone of both http://openstreetmap.org and http://api.openstreetmap.org for testing purposes. The goal is to have JOSM work with my local installation, where I can edit / update and quickly render it. I followed the RailsPort guide for setting up my own API server. The rails db:migrate automatically creates the database schema and it says to import data using osmosis. The guide for Mapnik says it requires data to be imported from .osm files by using osm2pgsql which uses a different schema thank osmosis. My question is, when updates are made using say http://api.localosmserver/api/ how do I update the data for Mapnik? Are the two schema compatible with eachother? asked 03 Nov '12, 11:35 bibstha |
You have to use osmosis to generate replication diffs from your local api-db. Next these replication diffs can be applied to your rendering-db using osm2pgsl. For details see: http://wiki.openstreetmap.org/wiki/Osmosis/Replication#Server-side_Replication answered 03 Nov '12, 16:40 cartinus I understood the part where data needs to be migrated from apidb > osmosis > changesetfile > osm2pgsql > PostGIS schema. However I can't figure out how to generate the changesetfile from osmosis on a regular basis. For example, I am working with a small area in OSM (oberbayern.osm) from geofabrik.de. Both ApiDB and PostGIS have data from the same .osm file with first import. Now, I am able to upload new data from JOSM to ApiDB. This will happen on a daily basis. How do I keep track of those changes and put them to PostGIS?
(04 Nov '12, 10:25)
bibstha
|