using (var fileStreamRead = File.OpenRead(@"D:\Work\MapRedraw_V6\FilteredPBF\tmpBoundingArea.osm.pbf"))
var source = new PBFOsmStreamSource(fileStreamRead);
var filtered = from osmGeo in source
where osmGeo.Type == OsmSharp.OsmGeoType.Node ||
(osmGeo.Type == OsmSharp.OsmGeoType.Way && osmGeo.Tags != null && osmGeo.Tags.Contains("highway", "road"))
var features = filtered.ToFeatureSource();
var lineStrings = from feature in features
where feature.Geometry is LineString
var featureCollection = new FeatureCollection();
foreach (var feature in lineStrings)
featureCollection.Add(feature);