[osmosis-dev] WayKeyFilter

Andrew Byrd andrew at fastmail.net
Wed Nov 18 21:47:17 GMT 2009


Hello Osmosis,

I saw that there is some desire to filter ways based on the presence  
of a key. This is useful for extracting all highways, whatever the  
type, for instance. I basically just made a hybrid of the  
WayKeyValueFilter and NodeKeyFilter, and it seems to do exactly that.  
The patch is at the following address:

http://global_void.mailc.net/

Usage example:
osmosis --read-xml file="input.osm" --way-key keyList="boundary" -- 
used-node --write-xml file="output.osm"

Happy data filtering,
Andrew




More information about the osmosis-dev mailing list