I have an OSM PBF file which I am trying to parse. The format standard states, and reading it in Sublime Text this is confirmed, that the first four bytes are:
0000 000d
Why then, if I run a very simple Python program:
PBFfile = open(r'MyFilePath.osm.pbf')
PBFfile.read(4)[3].encode('hex')
does it return 0a (the next byte in the sequence) not the expected 0d? Is there an obvious explanation?
I am on Windows 7, Python 2.7.5 32 bit.
open(filename, 'rb')