[OSM-talk] wayclean: New tool to 'clean up' unordered ways

Nick Whitelegg nick at hogweed.org
Mon Jan 8 20:56:37 GMT 2007


I've added a new utility to subversion, wayclean, to clean up unordered ways. 
It reads in an OSM file and outputs another OSM file with the same ways, but 
with segments ordered logically and all aligned in the same direction. The 
output ways and segments have negative IDs, as they will be altered from the 
original OSM data. Circular ways should be handled too. It seems to work on 
my simple test cases but let me know of any bugs.

Splitting branched ways is not handled as yet but I aim to do so.

wayclean is written in c++ and  requires libosm (also available from SVN) plus 
the expat XML parsing library (expat.sourceforge.net).

Nick




More information about the talk mailing list