logo separator

[mkgmap-dev] [PATCH v1] remove bogus nodes

From Felix Hartmann extremecarver at googlemail.com on Sat Nov 28 11:19:53 GMT 2009


Mark Burton wrote:
> Felix,
>
> Another thought:
>
> The current code will probably not work as expected if you generate
> any lines (most likely routable lines, but could also be long
> non-routable line) that are split and you then go on to generate more
> lines (routable or not) from the same way.
>
> The problem is that once the way is split, the original way only has
> the points from the beginning to the split point, all the other points
> will be missing.
>
> This is not a new issue, it's always been like that. So, trying to
> generate multiple routable ways from the same way is currently doomed
> to failure unless the way is very short/simple.
>
> Perhaps we should copy the list of points in the way before processing
> it so the original list doesn't get modified.
>
> Cheers,
>
> Mark
>   
I had two routable ferry lines, because I wanted to have both names show 
up (which was not working anyhow) of a) the ferry relation, and b) the 
ferry "way". Therefore both came up. Before the patch, having two 
routable lines worked out in identical copies. So the first time 
road_speed/class/oneway was set, it got taken over on all copies - at 
least according to gpsmapedit (you have to be on level=0, res=24 to see 
the details, otherwise it always shows 0/0).

It would be super great to have the ability to include different 
routable ways on top of each other (i.e. different speed for different 
restrictions, or different speed if using a cycleway=opposite against 
the direction of the general traffic flow). For car autorouting I am 
sure someone could also come up with examples how it could be useful. 
The easiest way to achieve this IMHO would be to have a file called 
lines2, that after lines has been completed, will be run again against 
all lines just like lines file, as if "lines" would not exist.
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>   



More information about the mkgmap-dev mailing list