
Johann, On Thu, 26 Nov 2009 23:53:58 +0100 Johann Gail <johann.gail@gmx.de> wrote:
As I said in a previous posting on this topic:
mb> Whenever a routable way gets split to limit the number of points or mb> nodes it makes a new list of points so any changes to the points in the mb> new list will not be visible in the original list.
So, wherever you see splitWay() that's where the "copying" occurs.
Maybe it is too late in the evening for me to understand the problem. In the splitWay() the line is splitted. Yes, a new list<Coord> is generated. But the points inside it are moved from one list to another. There is no new Coord(). So a CoordNode stays a CoordNode.
Yes, it would stay a CoordNode if it was a CoordNode at the time the line was split. But, Coord->CoordNode transformation happens after all the splitting has occurred. So at the time the lines are split, all Coords are Coords! Cheers, Mark