logo separator

[mkgmap-dev] [PATCH v1] make DP filter avoid removing points located at nodes

From Mark Burton markb at ordern.com on Thu Nov 26 23:03:25 GMT 2009

Johann,

On Thu, 26 Nov 2009 23:53:58 +0100
Johann Gail <johann.gail at 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



More information about the mkgmap-dev mailing list