New answers tagged osmosis
The "swiss-knife" for OpenStreetMap data is osmosis. It's a command-line Java application for linux and windows. Learn-OSM provides a great introduction for new users. With osmosis you can split OSM files by a bbox, a polygon or by specific tags. Check out the latest detailed usage wiki page for more information.
You want to use Osmosis. Example with pbf file (much much smaller - it's binary rather than text!): osmosis --read-pbf city.pbf\ --tf accept-ways cycleway=track,lane\ --used-node --write-xml citycycling.osm or with an osm XML file: osmosis --read-xml city.osm\ --tf accept-ways highway=*\ --used-node --write-xml ...
Top 50 recent answers are included