[osmosis-dev] [PATCH] Add --used-way filter

Bartosz Fabianowski bartosz at fabianowski.eu
Sat Mar 26 15:44:31 GMT 2011


Hi list

The attached patch adds a --used-way filter that is analogous to the 
--used-node one: Only ways referenced by a relation are kept.

This filter allows one to extract a subset of all relations and keep 
only the ways and nodes referenced by these:

osmosis --fast-read-xml input.osm \
         --tag-filter accept-relations <desired criterion> \
         --used-way \
         --used-node \
         --write-xml output.osm

I am using this patch locally and it works well for me.

- Bartosz
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: used-way.diff
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20110326/f3fd3d8a/attachment.ksh>


More information about the osmosis-dev mailing list