Osmosis - Filtering out only some types of nodes

Hi there,

I have a large (4GB) osm dump of some recent data, and would like to use Osmosis to only bring out some relevant details. For example, if I only wanted to have ‘postbox’ nodes instead of all the road data etc. (i.e I would like to slim the XML file down to only postboxes, as that’s all I am interested in, hypothetically). How would I get Osmosis to do this?

I have looked at the documentation, and it seems that there may be something there that works, but there are no relevant examples, I am currently guessing that this might work:

osmosis
–read-xml input.osm
–node-key-value = ‘amenity:post_box’
–write-xml output.osm

Any advice much appreciated!

  • N