I am working with .osm files and am trying to filter entities based on tags. I need to view only entities containing both source and attribution tags. I used the following to successfully filter all source tags only:
osmosis --read-xml file = "northern_ireland.osm" --way-key-value keyValueList="source"
--used node --write-xml northern_ireland_source.osm
From another tutorial, I've noticed that I would need to use a pipe: http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage_0.38
So I did the following:
osmosis --rx northern_ireland.osm --accept-ways source=* outPipe.0 = SOURCE
However, upon trying such code, I get a syntax error stating:
Argument does not contain a name before the '=' (i.e. name = value).
Any suggestions?