[OSM-dev] visible-Flag in PBF

Christian Vetter veaac.fdirct at gmail.com
Fri May 6 14:14:59 BST 2011


Hi,

When you assign ids to the new fields do take care to assign small
ids. Every id < 32 can be encoded in one byte by protobuf.

Regards,

Christian Vetter

On Fri, May 6, 2011 at 1:45 PM, Oliver Tonnhofer <olt at omniscale.de> wrote:
>
> On 06.05.2011, at 13:32, Jochen Topf wrote:
>
>> On Fri, May 06, 2011 at 12:16:48PM +0200, Christian Vetter wrote:
>>> On Fri, May 6, 2011 at 10:25 AM, Oliver Tonnhofer <olt at omniscale.de> wrote:
>>>> Isn't `repeated` like `optional`, since it can have zero occurrences?
>>>> I haven't tested that, though.
>>>
>>> Exactly. You should be able to add repeated fields. Just be sure not
>>> to reuse any IDs.
>>
>> Ok, that makes sense. That leaves the problem with the wrong default. You
>> can't set a default on a repeated field (I tried and the protobuf compiler
>> complained). But the default for the visible flag should be "true" to be
>> backwards compatible.
>
>
> The repeated list is empty by default, which a client can interpret as "all nodes visible".
>
> Regards,
> Oliver
>
> --
> Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.de
> http://mapproxy.org | https://bitbucket.org/olt | @oltonn
>
>
>
>
>



More information about the dev mailing list