[OSM-dev] osmformat.proto vs wiki: inconsistencies on Node field ids

Even Rouault even.rouault at spatialys.com
Sun Jan 10 15:11:47 UTC 2016


Le dimanche 10 janvier 2016 15:46:16, Jochen Topf a écrit :
> On So, Jan 10, 2016 at 02:29:31 +0100, Even Rouault wrote:
> > I've noticed an inconsistency in the ids of the fields of the Node
> > message between http://wiki.openstreetmap.org/wiki/PBF_Format and
> > https://github.com/openstreetmap/osmosis/blob/master/osmosis-osm-binary/s
> > rc/main/protobuf/osmformat.proto
> > 
> > The wiki mentions :
> > 
> > message Node {
> > 
> >    required sint64 id = 1;
> >    required sint64 lat = 7;
> >    required sint64 lon = 8;
> >    repeated uint32 keys = 9 [packed = true]; // Denote strings
> >    repeated uint32 vals = 10 [packed = true];// Denote strings
> >    optional Info info = 11; // Contains metadata
> > 
> > }
> 
> The wiki says: "An example message specification is:" before that. So this
> is not intended to be the Node spec actually used, but just an example how
> these specs look like. But I agree that that's confusing.
> 
> The correct and current .proto definition is at
> https://github.com/scrosby/OSM-binary/blob/master/src/osmformat.proto

Jochen,

Thanks for the confirmation. I've fixed the wiki. I had apparently developed my 
code against the wiki version, but luckily the Node message is rarely used. I 
just discovered the issue when playing with osmosis and usedense=false.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com



More information about the dev mailing list