[OSM-dev] visible-Flag in PBF

Oliver Tonnhofer olt at omniscale.de
Fri May 6 12:45:18 BST 2011

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". 


Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.de
http://mapproxy.org | https://bitbucket.org/olt | @oltonn

More information about the dev mailing list