Hi Bartosz,<br><br>Thanks for the patch. I've applied it mostly unchanged except that I've registered the task as "--used-way-0.6" in addition to the names you provided.<br><br>I've also documented it on the wiki.<br>
<a href="http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage_0.39#--used-way_.28--uw.29">http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage_0.39#--used-way_.28--uw.29</a><br><br>Cheers,<br>Brett<br><br><div class="gmail_quote">
On Sun, Mar 27, 2011 at 2:44 AM, Bartosz Fabianowski <span dir="ltr"><<a href="mailto:bartosz@fabianowski.eu">bartosz@fabianowski.eu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi list<br>
<br>
The attached patch adds a --used-way filter that is analogous to the --used-node one: Only ways referenced by a relation are kept.<br>
<br>
This filter allows one to extract a subset of all relations and keep only the ways and nodes referenced by these:<br>
<br>
osmosis --fast-read-xml input.osm \<br>
--tag-filter accept-relations <desired criterion> \<br>
--used-way \<br>
--used-node \<br>
--write-xml output.osm<br>
<br>
I am using this patch locally and it works well for me.<br><font color="#888888">
<br>
- Bartosz<br>
</font><br>_______________________________________________<br>
osmosis-dev mailing list<br>
<a href="mailto:osmosis-dev@openstreetmap.org">osmosis-dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/osmosis-dev" target="_blank">http://lists.openstreetmap.org/listinfo/osmosis-dev</a><br>
<br></blockquote></div><br>