[OSM-dev] Live Database Copy of Planet File

Matt Amos zerebubuth at gmail.com
Thu Nov 5 12:10:00 GMT 2009


On Thu, Nov 5, 2009 at 12:00 PM, Frederik Ramm <frederik at remote.org> wrote:
> Timo Juhani Lindfors wrote:
>> I would like to do this too to provide a local mirror.  Last time I
>> tried to do this I understood that this can't be done since the 0.6
>> style diffs do not have enough information to create 100% identical
>> copy. Is this still correct? I think the problem had something to do
>> with changesets not being atomic.
>
> There are now "replication" changesets (along with a special Osmosis
> task, --rri, to read and assemble them) which are supposed to capture
> any change to the data base.

this doesn't create a 100% identical copy, as the changeset objects
themselves aren't included in the replication diffs. the problem isn't
that changesets aren't atomic - that just makes it harder - but that
someone needs to write the code in osmosis to track changes to the
changesets table.

if you don't need a 100% accurate mirror, and having an accurate
mirror of nodes, ways and relations (which changeset references, but
not changeset tags) is enough, then use osmosis - it does everything
you want.

cheers,

matt




More information about the dev mailing list