I'm trying to extract everything related to railways from pbf file using osmosis. I've tried several ways but couldn't find a solution. I got everthing about railways extracted except rails. Here is what I've tried latest:
osmosis --read-pbf file=turkey-latest.osm.pbf --tf accept-nodes railway=* --tf reject-relations --tf reject-ways --write-xml yollar.osm
If I remove --tf reject-ways I will have enourmously large data.
I'm using Osmosis v0.47 and latest pbf data.