NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I want to create a clone of both and 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's gravatar image

accept rate: 0%

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:

permanent link

answered 03 Nov '12, 16:40

cartinus's gravatar image

accept rate: 27%

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 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

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 03 Nov '12, 11:35

question was seen: 5,414 times

last updated: 04 Nov '12, 10:25

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum