I new to this and have recently downloaded the latest Planet.osm. I need to extract the world Railway layer using Osmosis. The problem is I can’t figure out the correct command. I just need the main railway lines/paths, no trams, subways, stations etc. Can anyone help?
Ok, I’m trying osmfilter with this command: osmfilter planet-130731.osm --keep=“railway=rail” --drop-nodes --drop-relations >rail.osm
So far the hard drive seems to be doing a lot of work but the output file is still at 0kb?
Please try to use osmfilter with a smaller data extract … it seems that you are using the whole OSM planet dataset.
have a look e.g. at geofabrik.de … they offer country extracts by region … if necessary, do a conversion of pbf format to o5m or osm if needed via osmconvert.exe
and try osmfilter with -v parameter … should bring some screen output about being busy.
Unfortunately I need the whole dataset, Downloading the regions is no good for what I’m doing. This is what I’m getting below, does it look correct to you?