Thank you. When I commited the changes over the weekend, I went through all of the validator messages. I fixed all the errors, and almost all of the warnings. I looked at every warning one at a time, for sure, leaving the ones where I didn’t think there should be a change. I don’t remember what the case was where that happened.

I’m automatically downloading and parsing the information from Overpass, and then dumping what my program finds to a file. I’m looking at what the waterways would become connected to if its end node(s) got merged with the nodes within 5cm. I’ve now narrowed it down to:

  • 16.8k instances of the waterway way connecting to a single closed way tagged natural=water
  • 145 instances of connecting to a way belonging to a relation tagged natural=water
  • 5 cases of connecting to a way just tagged landuse=reservoir, which I would change to natural=water manually
  • Less than 5 instances each of a waterway connecting to a way with natural=water and also one of: a natural=wood, a natural=wetland, or a second natural=water at the same position
  • Finally, about a dozen instances of waterways with ends touching that I didn’t find before because I only looked for AritificalPaths and connectors.

There had been some cases of administrative boundaries, with a node at the same coordinates, but I don’t touch anything like that automatically.

Once I was comfortable with what I was going to do, I loaded everything in JOSM and ran a script that goes to each group of nodes to merge and runs the functionality behind the “Merge Nodes” function on them.

2 Likes