Has anyone written a tool (ideally in C or C++) for filtering out duplicate nodes, segments and ways from an .osm file? e.g. it takes in an OSM file containing two copies of, say, way 223 and outputs a file containing just the one copy. Thanks, Nick