[OSM-dev] Minutely changeset feed

Toby Murray toby.murray at gmail.com
Fri Nov 2 06:34:37 GMT 2012


Since I have been playing with changeset metadata[1] a bit, Paul
Norman recently pointed out to me that there are now minutely diffs of
changesets available from planet.osm [2]. Would anyone care to share
some juicy details like where it came from and how it works?
Apparently it was mentioned in an EWG meeting. I should really check
one of those out...

Anyway, some observations/questions:

I see the state file is in a different format than all the other
replication state files. Probably not a big deal but is there value in
consistency?

Are there any existing tools to use this stream?

It looks like changesets don't show up until they are closed. This
makes sense since then you don't have to worry about information
changing.

However, what will it do in the edge case where a changeset is closed
but then reopened? Not possible you say? I once had an upload take
over an hour to process. It did eventually succeed but the changeset
was marked as closed in my changeset list for several minutes before
the upload finished and then it was suddenly open again. I am assuming
in this case the changeset would show up twice in the minutely diffs
and cause the INSERT queries of all consumers to explode violently :)

[1] https://github.com/ToeBee/ChangesetMD
[2] http://planet.openstreetmap.org/replication/changesets/

Toby



More information about the dev mailing list