Hi - I'm using the code sample here: http://stackoverflow.com/questions/4663298/protobuf-net-deserialize-open-street-maps To parse a sample osm.pbf export. I generated C# classes from the .proto definitions here: https://github.com/scrosby/OSM-binary/blob/master/src/ using the protogen util associated with protobuf-net The code runs and I can see valid looking data in the string table for each PrimitiveBlock instance. However, the PrimitiveGroup list always has a single item which is unpopulated (e.g. no nodes, ways, relations etc.). I'm using a sample data file from here: asked 31 May '13, 15:09 simonthorogood |
If you have found an answer you should post it; this isn't a direct answer, but may contain information which would help others who are trying to read PBF. I translated the PBF Format into D code. I then wrote up a blog series to detail what I went through. I believe that D is clean enough that those familiar with C syntax can easily understand how PBF is laid out (if not, let me know so I can correct that belief). Hope this helps someone. answered 10 Aug '13, 18:11 he_the_great |
A very developer-y question that might perhaps yield better/more responses if posted to the dev mailing list, see lists.openstreetmap.org.