<div class="gmail_quote">On Wed, Jul 21, 2010 at 11:52 PM, Lars Francke <span dir="ltr"><<a href="mailto:lars.francke@gmail.com">lars.francke@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Wed, Jul 21, 2010 at 15:42, Brett Henderson <<a href="mailto:brett@bretth.com">brett@bretth.com</a>> wrote:<br>
> I haven't looked at the full history dump to be honest so I'm not in a great<br>
> position to comment, but I'll comment anyway ;-)<br>
><br>
> I'm curious what the format of the full history dump is. I'd like to<br>
> understand how nodes, ways and relations are represented in the file but I<br>
> can't do so without downloading the whole thing and decompressing it.<br>
<br>
</div>The format is pretty standard .osm XML.<br>
It currently outputs a visible attribute for every object.<br>
<br>
Apart from that everything should be standard[1] and modeled after the<br>
tool that writes the planet except that each element may occur<br>
multiple times.<br>
There are only two things to look out for: It is not "pretty-printed",<br>
so everything is just one huge line (I know that some people do<br>
line-based parsing but that won't work here) and as there's old data<br>
mixed in not every element has uid and user attributes.<br>
<br>
Let me know if you have any questions or if a format change would help<br>
in any way but I believe the current format is pretty normal and<br>
should be parseable by almost every tool that already parses .osm<br>
files.<br></blockquote><div><br>That format is fine and exactly what I would have expected. I suspect Osmosis would parse it okay, but without support for the visible attribute it won't be particularly useful.<br> </div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Cheers,<br>
Lars<br>
<br>
[1] <a href="https://bitbucket.org/lfrancke/historydump/src/tip/src/main/java/org/openstreetmap/util/Dumper.java" target="_blank">https://bitbucket.org/lfrancke/historydump/src/tip/src/main/java/org/openstreetmap/util/Dumper.java</a><br>
</blockquote></div><br>