@@ -107,7 +107,7 @@ def init(self, logger):
107107 def node (self , data , tags ):
108108 if tags .get ('railway' ) in ('abandoned' , 'tram' , 'proposed' , 'razed' , 'dismantled' , 'construction' , 'platform' ):
109109 del tags ['railway' ]
110- if tags .get ('waterway' ) == 'dam' :
110+ if tags .get ('waterway' ) == 'dam' or ( 'waterway' in tags and 'highway' in tags and tags . get ( 'ford' ) == 'yes' ) :
111111 del tags ['waterway' ]
112112 if tags .get ('railway' ) == 'tram_stop' and tags .get ('highway' ) == 'bus_stop' :
113113 del tags ['railway' ]
@@ -144,6 +144,7 @@ def test(self):
144144 for t in [{"aerialway" : "yes" , "aeroway" : "yes" },
145145 {"highway" : "trunk" , "railway" : "rail" },
146146 {"amenity" : "fountain" , "leisure" : "swimming_pool" , "natural" : "water" },
147+ {"highway" : "track" , "waterway" : "stream" },
147148 ]:
148149 self .check_err (a .node (None , t ), t )
149150 self .check_err (a .way (None , t , None ), t )
@@ -155,6 +156,7 @@ def test(self):
155156 {"waterway" : "dam" , "highway" : "road" },
156157 {"landuse" : "school" , "amenity" : "school" },
157158 {"place" : "square" , "highway" : "pedestrian" },
158- {"leisure" : "nature_reserve" , "natural" : "scrub" }
159+ {"leisure" : "nature_reserve" , "natural" : "scrub" },
160+ {"highway" : "track" , "waterway" : "stream" , "ford" : "yes" },
159161 ]:
160162 assert not a .node (None , t ), t
0 commit comments