Hi Andrew,<br><br>Thanks for the patch!  I've applied it to the current trunk.  I haven't tested it, or even looked at the code much but I'll assume it works :-)  It complements the existing --node-key, --node-key-value and --way-key-value well.<br>
<br>The only change I made was to add a --way-key-0.6 name to TaskRegistrar because all tasks have a version based entry as well.<br><br>Can you please update the wiki detailed usage page to reflect the new task?<br><a href="http://wiki.openstreetmap.org/wiki/Osmosis/DetailedUsage">http://wiki.openstreetmap.org/wiki/Osmosis/DetailedUsage</a><br>
<br>On this note, if anybody is keen Osmosis could really do with somebody to take on creating a consistent set of filtering tasks for all entity types (at a minimum it appears that relations are missing from the existing set of tasks).  I'm not sure what the requirements would be and I don't do any filtering myself so don't have much experience with it.  I think all existing tasks have a bug at the moment where they don't handle ',' characters in the key names which probably should also be fixed.<br>
<br>Brett<br><br><br><br><div class="gmail_quote">On Thu, Nov 19, 2009 at 8:47 AM, Andrew Byrd <span dir="ltr"><<a href="mailto:andrew@fastmail.net">andrew@fastmail.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello Osmosis,<br>
<br>
I saw that there is some desire to filter ways based on the presence<br>
of a key. This is useful for extracting all highways, whatever the<br>
type, for instance. I basically just made a hybrid of the<br>
WayKeyValueFilter and NodeKeyFilter, and it seems to do exactly that.<br>
The patch is at the following address:<br>
<br>
<a href="http://global_void.mailc.net/" target="_blank">http://global_void.mailc.net/</a><br>
<br>
Usage example:<br>
osmosis --read-xml file="input.osm" --way-key keyList="boundary" --<br>
used-node --write-xml file="output.osm"<br>
<br>
Happy data filtering,<br>
Andrew<br>
<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>
</blockquote></div><br>