<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-09-17 17:09 GMT+02:00 Sandro Santilli <span dir="ltr"><<a href="mailto:strk@kbt.io" target="_blank">strk@kbt.io</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>On Sat, Sep 17, 2016 at 04:25:06PM +0200, Björn Harrtell wrote:<br>
<br>
> Found <a href="https://github.com/mapbox/vector-tile-spec/issues/11" rel="noreferrer" target="_blank">https://github.com/mapbox/vect<wbr>or-tile-spec/issues/11</a> supporting the<br>
> claim that a multi-layered vector tile is indeed a set of independent layer<br>
> messages. Still not sure about the possibility of aggregating the contents<br>
> of a layer as separate calls.<br>
<br>
</span>If I recall correctly, a good reason to have all the data at once<br>
before starting to encode it was the indexing of values.<br>
<br>
That is, attribute _values_ can be put in a dictionary and only<br>
referenced per-feature (think of a palette for graphics).<br>
Such "dictionary" can help in case of large repeated values.<br>
<br>
Using a row-by-row approach, makes it impossible to build such<br>
dictionary, which is why my early attemps were just at producing<br>
the geometric part, very much like the GML output works, delegating<br>
composition of the whole final product to the caller (which could<br>
eventually also be a ROW-taking wrapper).<br></blockquote><div><br></div><div>Thanks for this insight. I've still not reached a good enough understanding of what is and what is not possible/practical regarding protobuf binary (packed message) composition so will have to do more research.</div><div><br></div><div>As a side note, while trying to increase my knowledge about protobuf I've also looked at flatbuffers and wonder if it wouldn't be the better alternative for future spatial formats. Lightning talk at <a href="https://www.youtube.com/watch?v=olmL1fUnQAQ">https://www.youtube.com/watch?v=olmL1fUnQAQ</a> by Wouter van Oortmerssen who is to blame for getting me into programming in the first place by creating the now ancient language Amiga E. :)</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
--strk;<br>
</blockquote></div><br></div></div>