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

Jon Burgess jburgess777 at googlemail.com
Mon Jan 8 21:16:01 GMT 2007


On Mon, 2007-01-08 at 20:56 +0000, Nick Whitelegg wrote:

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

You might find the WKT() routine in osm2pgsql.c as a useful starting
point for handling branched ways. In short, that code takes the initial
list of segments for a way and computes a sequence of contiguous
segments. Calling the routine again will then calculate another
contiguous sequence. This can be repeated over and over until it returns
nothing indicating that all segments have been used.


	Jon






More information about the talk mailing list