[osmosis-dev] [PATCH] Make --used-node keep nodes used in relations as well
Bartosz Fabianowski
bartosz at fabianowski.eu
Thu Feb 24 17:23:55 GMT 2011
Hi list
The --used-node task keeps only the nodes that are used by at least one
way. This allows unnecessary nodes to be thrown out while ensuring ways
remain complete. *Relations*, however, are broken as the nodes
referenced by these are thrown out.
The attached trivial patch extends --used-node to keep a node if it is
referenced by at least one way *or relation* in the input stream. I am
using this locally and it works for me like a charm.
- Bartosz
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: used-node.diff
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20110224/2e078ec1/attachment.ksh>
More information about the osmosis-dev
mailing list