branch for support of via ways in restriction relations

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/via_ways@3119 25d90789-57f7-4ee0-8453-03a3dfeeeb22
new structure to collect data for route restrictions

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/via_ways@3120 25d90789-57f7-4ee0-8453-03a3dfeeeb22
work in progress: support via ways in restriction relations

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/via_ways@3121 25d90789-57f7-4ee0-8453-03a3dfeeeb22
simplify restriction handling 

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/via_ways@3122 25d90789-57f7-4ee0-8453-03a3dfeeeb22
remove dead code

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/via_ways@3133 25d90789-57f7-4ee0-8453-03a3dfeeeb22
simplify code, correct log messages, print warning instead of info for
route restrictions that try to use wrong end of a oneway. 

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/via_ways@3134 25d90789-57f7-4ee0-8453-03a3dfeeeb22
fix replacement of via nodes in WrongAngleFixer

improve logging of problems in RouteRestriction

start fixing LinkDestinationHook

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/via_ways@3135 25d90789-57f7-4ee0-8453-03a3dfeeeb22
RoadMerger: allow again to merge roads at via nodes of restrictions if the roads are not members of the restriction 

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/via_ways@3136 25d90789-57f7-4ee0-8453-03a3dfeeeb22
- prepare support for multiple via ways
- correct diverse (but still not all) errors
(NodCheck still complains)

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/via_ways@3139 25d90789-57f7-4ee0-8453-03a3dfeeeb22
update internal/external flag right before writing the route center
this seems to fix the remaining errors 

remove many debug infos

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/via_ways@3140 25d90789-57f7-4ee0-8453-03a3dfeeeb22
don't generate obsolete restrictions for oneways 

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/via_ways@3141 25d90789-57f7-4ee0-8453-03a3dfeeeb22
clean up code: always use grr for GeneralRouteRestriction

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/via_ways@3142 25d90789-57f7-4ee0-8453-03a3dfeeeb22
merge from trunk r3138

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/via_ways@3143 25d90789-57f7-4ee0-8453-03a3dfeeeb22
start to support more restrictions:

- type=restriction:*, e.g.  type=restriction:motorcar 
- restriction:*=<turn>, e.g.  restriction:bicycle=no_right_turn  
Todo: match allowed /disallowed restriction vehicles and road vehicles
so that mkgmap doesn't generate e.g.
a restriction for a bicyle when the road doesn't allow bicycle traffic

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/via_ways@3144 25d90789-57f7-4ee0-8453-03a3dfeeeb22
generate route restrictions for all valid combinations of arcs 
if style assigns multiple routable ways for one OSM way

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/via_ways@3146 25d90789-57f7-4ee0-8453-03a3dfeeeb22
add some TODO for incomplete access checks

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/via_ways@3147 25d90789-57f7-4ee0-8453-03a3dfeeeb22
don't add restriction if roads don't allow access.

Sample: no_straight_on restriction with except=psv
and to way that is only allowed for psv

make more noise if restriction was ignored

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/via_ways@3148 25d90789-57f7-4ee0-8453-03a3dfeeeb22
correct stupid typo that caused some "can't add restriction" messages

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/via_ways@3149 25d90789-57f7-4ee0-8453-03a3dfeeeb22
correct special case: if from way or to way is clipped at tile border,
update reference in restrictions

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/via_ways@3150 25d90789-57f7-4ee0-8453-03a3dfeeeb22
- correct special case: if from way or to way is clipped at tile border,
update reference in restrictions (2nd part)
- allow except=emergency in restriction 


git-svn-id: http://svn.mkgmap.org.uk/mkgmap/branches/via_ways@3151 25d90789-57f7-4ee0-8453-03a3dfeeeb22