[OSM-dev] Osmosis patch for filtering ways
brett at bretth.com
Wed Mar 26 10:48:40 GMT 2008
Thanks for the patch. I haven't had a chance to look at it yet but I
will get to it eventually.
Christoph Sommer wrote:
> Dear all,
> I recently needed to filter OSM data to only include motorways and trunk
> roads. Finding no easy way to achieve that in a batch run, I extended
> Osmosis to be able to filter ways and nodes to achieve this. Maybe the
> patch is of use to someone:
> Osmosis can then be run like this:
> java -jar osmosis.jar --read-xml file="input.osm" --way-key-value
> --used-node --write-xml file="output.osm"
> It will filter ways to only output those with given key.value combinations,
> then discard unused nodes.
> dev mailing list
> dev at openstreetmap.org
More information about the dev