logo separator

[mkgmap-dev] [PATCH v1] Remove one direction of motorways in overview

From GerdP gpetermann_muenchen at hotmail.com on Tue May 14 06:17:27 BST 2013

Hi WanMil,

I would like to implement an isSimilar() methid as suggested by Steve:
http://gis.19327.n5.nabble.com/ways-are-deleted-when-not-routable-tp5760424p5760727.html

but I don't understand how your function calculates an angle between just
two points.
I think I have to compare two bearings to find out if two lines are
parallel?

Gerd 


WanMil wrote
> Attached patch gives a little try how we could remove the duplicate 
> motorways in the overview map. Usually both directions of a motorway are 
> painted on each other.
> 
> The patch removes all motorway segments from the overview map that span 
> an angle 0° to 180° between first and last point of a segment.
> 
> It should not be commited because I think we could do better with a 
> specialized filter (?) but it's an easy prototype to check if it's 
> worthy to start such an implementation.
> 
> WanMil
> 
> _______________________________________________
> mkgmap-dev mailing list

> mkgmap-dev at .org

> http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> 
> motorway_undup_v1.patch (4K)
> <http://gis.19327.n5.nabble.com/attachment/5760869/0/motorway_undup_v1.patch>





--
View this message in context: http://gis.19327.n5.nabble.com/PATCH-v1-Remove-one-direction-of-motorways-in-overview-tp5760869p5760895.html
Sent from the Mkgmap Development mailing list archive at Nabble.com.


More information about the mkgmap-dev mailing list