<div class="gmail_quote">On Tue, May 24, 2011 at 5:09 PM, Peter Körner <span dir="ltr"><<a href="mailto:osm-lists@mazdermind.de">osm-lists@mazdermind.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Am <a href="tel:24.05.2011%2017" value="+12405201117" target="_blank">24.05.2011 17</a>:05, schrieb Igor Brejc:<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Not necessarily the same thing. Writing protobuf reader is still much<br>
easier than implementing something like<br>
<a href="http://www.sqlite.org/fileformat.html" target="_blank">http://www.sqlite.org/fileformat.html</a> and<br>
<a href="http://www.sqlite.org/fileformat2.html" target="_blank">http://www.sqlite.org/fileformat2.html</a><br>
</blockquote>
<br></div>
You don't need to *imlement* sqlite on your own, just as well as you don't need to implement the protobuf-reading and -writing on your own. There're libs for it and you should use them.<br><font color="#888888">
<br>
Peter<br>
</font></blockquote></div><br><div><ol><li>There are various reasons why you _would_ need to implement your own reader of a file format, which can be project-specific (performance, additional functionality, not supported for your prog. language etc). </li>
<li>sqlite is not exactly a reader, it's a driver. To actually read the data, you need to run a query through that driver. This is one of the reasons I don't see it as a pure shapefiles replacement.</li><li>When talking about protobuffers, there is a distinction between a general-purpose library implementing the protobuff protocol and a reader which uses this library to read a concrete binary format. In the case of OSM PBF I had to write my own reader because there wasn't one implemented in C#.</li>
</ol><div>Igor</div></div>