-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels