This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How are the replication diffs created?

1

Osmosis is executed to generate the replication diffs. What is it doing exactly?

asked 14 Jul '10, 15:54

emka's gravatar image

emka
95225
accept rate: 0%

retagged 14 Jul '10, 16:29

petschge's gravatar image

petschge
8.3k217398

Is help.openstreetmap.org really the place for in-depth technical discussions? The answer to this question would have to go into details of PostgreSQL transactions and the like, to a degree where anyone who can understand the answer can also read and understand the source code. IMHO we should keep help.openstreetmap.org end-user facing, not technical-geek-facing.

(14 Jul '10, 16:17) Frederik Ramm ♦

Where would you draw the border?

Have a look at the first two questions for example: https://help.openstreetmap.org/questions/1 https://help.openstreetmap.org/questions/2

An answer containing the SQL commands would already help, reading a huge bunch of Java source code is too much for me right now.

(14 Jul '10, 16:30) emka
1

Careful with the first few questions - they were half-serious and half-just testing the system.

As for whether this is the place for in-depth technical discussion? No, certainly not. But ideally the documentation should exist somewhere, for example the wiki, and then the answer here can simply point towards it and provide a summary. It's not supposed to be that the answers here will be canonical, it's fine to have links for further reading.

(14 Jul '10, 17:45) Andy Allan

I'm interested in the answer as well. How are the transaction-id's taken from?

(03 Mar '13, 11:07) bibstha

One Answer:

5

The replication diffs are created using Osmosis. The option used is '--replicate-apidb'.

answered 14 Jul '10, 16:22

Firefishy's gravatar image

Firefishy ♦♦
1.3k73652
accept rate: 29%

Source code available on GitHub .