[OSM-dev] visible-Flag in PBF

Jochen Topf jochen at remote.org
Fri May 6 12:32:39 BST 2011


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.

Jochen
-- 
Jochen Topf  jochen at remote.org  http://www.remote.org/jochen/  +49-721-388298




More information about the dev mailing list