conveyal / osm-lib

A library for opening, updating and manipulating OSM files of any size.
BSD 2-Clause "Simplified" License
39 stars 13 forks source link

Error: block raw size expected at: 0x0A #11

Open abyrd opened 9 years ago

abyrd commented 9 years ago

Report from Gerd Petermann from the osm-dev list:

I was able to run the sample commands in readme.md with this file: http://download.geofabrik.de/europe/germany/niedersachsen-latest.osm.pbf

I've then used wget http://localhost:9001/52.880317,8.4041013,52.9082785,8.4864987.pbf

to extract a small part. Next step was to convert it to xml format, but osmconvert (1.8.4) complains:

f:\osm>osmconvert.exe "52.880317,8.4041013,52.9082785,8.4864987.pbf" -o=test.osm
osmconvert Error: block raw size expected at: 0x0A.

Interestingly I was able to read the pbf file with splitter which uses the library provided by Scott A. Crosby.

abyrd commented 9 years ago

Bug reproducible on MacOS 10.10.4:

$ osmconvert "52.880317,8.4041013,52.9082785,8.4864987.pbf" -o=test.osm
osmconvert Error: block raw size expected at: 0x0A.