@@ -107,7 +107,7 @@ def init(self, logger):
107
107
def node (self , data , tags ):
108
108
if tags .get ('railway' ) in ('abandoned' , 'tram' , 'proposed' , 'razed' , 'dismantled' , 'construction' , 'platform' ):
109
109
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' ) :
111
111
del tags ['waterway' ]
112
112
if tags .get ('railway' ) == 'tram_stop' and tags .get ('highway' ) == 'bus_stop' :
113
113
del tags ['railway' ]
@@ -144,6 +144,7 @@ def test(self):
144
144
for t in [{"aerialway" : "yes" , "aeroway" : "yes" },
145
145
{"highway" : "trunk" , "railway" : "rail" },
146
146
{"amenity" : "fountain" , "leisure" : "swimming_pool" , "natural" : "water" },
147
+ {"highway" : "track" , "waterway" : "stream" },
147
148
]:
148
149
self .check_err (a .node (None , t ), t )
149
150
self .check_err (a .way (None , t , None ), t )
@@ -155,6 +156,7 @@ def test(self):
155
156
{"waterway" : "dam" , "highway" : "road" },
156
157
{"landuse" : "school" , "amenity" : "school" },
157
158
{"place" : "square" , "highway" : "pedestrian" },
158
- {"leisure" : "nature_reserve" , "natural" : "scrub" }
159
+ {"leisure" : "nature_reserve" , "natural" : "scrub" },
160
+ {"highway" : "track" , "waterway" : "stream" , "ford" : "yes" },
159
161
]:
160
162
assert not a .node (None , t ), t
0 commit comments