[osmosis-dev] Problem creating pbf data with osmosis 0.39
Michael Prinzing
mipri at gmx.net
Thu Sep 22 19:23:53 BST 2011
On Wed, 21 Sep 2011 21:28:05 +0200, Igor Podolskiy wrote:
Hello Igor,
>On 21.09.2011 00:04, Igor Podolskiy wrote:
>> On 20.09.2011 22:50, Michael Prinzing wrote:
>>> Now, there is an "empty" bounding box, and the timestamps are far in
>>> the past (looks like an integer of -1 converted to a timestamp to me).
>> [...]
>> I could reproduce the empty bounding box problem, though, thanks for the
>> report. IMHO this is a bug and unless someone who is more knowledgeable
>> than me says it's a feature (Brett? Scott? :)), I'm going to try to fix it.
>>
>> I am sure it is somewhere between the PBF writer and the PBF reader
>> (i.e. it is not an XML reader/writer problem), more precisely in the
>> header block handling, but I need to investigate it a little further...
>> means, it could take a couple of days before I come up with a fix.
>okay, that was a bit simpler than it seemed yesterday. The HeaderBBox
>field is declared optional in the PBF definition, but the adapter code
>for Osmosis (OsmosisBinaryParser) didn't check whether the bounding box
>was set and was reading it anyway. The generated protobuf code doesn't
>prevent this, and the adapter was just reading the default values which
>happen to be zeroes.
>
>I just fixed it in r26690 in the current trunk, so no more spurious
><bounds> from the PBF reader.
Thank you for the quick fix. The new version is reading pbf files
created with osmosis 0.38, 0.39 and with itself without a problem.
One question, however: if I am understanding this correctly, the
problem was with reading pbf files, not with creating them. This would
mean that also pbf files created with osmosis 0.39 were valid and did
not really contain an empty bounding box?
I am asking because the mkgmap splitter still sees such an empty
bounding box even when reading pbf data created with the latest osmosis
from snapshot. Are the changes you did to osmosis to be applied to the
splitter, too?
Thank you,
Michael
More information about the osmosis-dev
mailing list