Skip to content

Osrm can't parse created .osm.pbf files #148

@Doidel

Description

@Doidel

I just wanted to mention that osrm is unable to work with pbf files created by OsmSharp.

Example Code:

Merge

using (FileStream stream1 = File.OpenRead(SwitzerlandPath),
    stream2 = File.OpenRead(LiechtensteinPath))
{
    var mergeStream = new OsmSharp.Streams.Filters.OsmStreamFilterMerge();
    mergeStream.RegisterSource(new PBFOsmStreamSource(stream1));
    mergeStream.RegisterSource(new PBFOsmStreamSource(stream2));

    using (var stream = File.Create(MyOsmOutputPath))
    {
        var target = new PBFOsmStreamTarget(stream, true);
        target.RegisterSource(mergeStream);
        target.Pull();
    }
}

Osrm-extract command:
osrm-extract -p /my/profile.lua my.osm.pbf --> [error] [exception] PBF error: blob contains no data

Works with all other kinds of pbf files tho. And e.g. merged pbfs by osmium.

Thanks for taking note.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions