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

Even Rouault even.rouault at spatialys.com
Sun Jan 10 13:29:31 UTC 2016


Hi,

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/src/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
}

And the .proto :

message Node {
required sint64 id = 1;
// Parallel arrays.
repeated uint32 keys = 2 [packed = true]; // String IDs.
repeated uint32 vals = 3 [packed = true]; // String IDs.
optional Info info = 4; // May be omitted in omitmeta
required sint64 lat = 8;
required sint64 lon = 9;
}

Except "id", all other fields ids are different.

I assume the .proto is up-to-date. Has there been a change at some point ?

Thanks,

Even

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



More information about the dev mailing list