[josm-dev] Find superfluous nodes

Jo winfixit at gmail.com
Thu May 30 05:41:53 UTC 2013


Hi,

We got some data where there are extra nodes, which I'd like to get rid of
before integrating it into OSM.

The simplify function is too coarse for the purpose and doing it manually
gets tedious.

Is there a way to determine that 3 nodes are on a straight line, or is it
possible to calculate the bearing (directional coefficient?) of the line
intersecting 2 points? If this is the same for two consecutive lines, the
node in between can be safely removed. (I'll check that it's not part of an
adjacent building first, of course).

Jo


More information about the josm-dev mailing list