<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

I have a quick question: does the format support inserting data to an existing file? Or is it just some binary serialization?<br>
</blockquote><div><br>The format is a binary serialization design and does not support random-access read and write semantics. For that a database is probably more suitable.<br><br>However, some
changes can be done to a file relatively cheaply. Data can be trivially
appended. Rewriting a file could be fairly cheap as each fileblock is
independently decodable and contains only 8,000 OSM entities. A
fileblock can be copied from an input to an output without
decompressing or parsing it. Metadata in the block header could be used
to find out which fileblocks can be copied unchanged, or used to filter
out unwanted blocks.<br>

 </div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Now we just need the dump tool for the database to create some planet dump file in your format.<br>



<br></blockquote></div><br>If osmosis is used as the dump tool, I
believe a --write-bin should suffice to make a planet dump. The code
just ties into the existing Source/Sink osmosis architecture.<br><br>Scott<br><br>