[osmosis-dev] TagFilter

Peter Körner osm-lists at mazdermind.de
Tue Nov 24 10:32:41 GMT 2009


> osmosis \
> --read-xml input.osm \
> --tf accept-ways highway=* \
> --tf reject-ways highway=motorway,motorway_link \
> --tf reject-relations \
> --used-node \
> --write-xml output.osm

Can I filter for nodes with a specific tag OR nodes in a way with a 
specific tag or does --used-node throw these POI nodes away?

Eg. I want all nodes with the amenity tag set and all ways with the 
highway tag set plus their nodes.

an Example:

osmosis \
  --read-xml input.osm \
  --tf accept-ways highway=* \
  --tf accept-nodes amenity=* \
  --tf reject-relations \
  --used-node \
  --write-xml output.osm


Does --used-node in this case throw away all amenity=* nodes?

Peter




More information about the osmosis-dev mailing list