Skip to content

Commit

Permalink
fix #20089: Don't flag railway=rail crossing railway=yard
Browse files Browse the repository at this point in the history
- ignore crossings of ways if one is `railway=yard` and the other is not and both have the `railway` key

git-svn-id: https://josm.openstreetmap.de/svn/trunk@17348 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
GerdP authored and GerdP committed Nov 24, 2020
1 parent 4d37cd0 commit 0dbc805
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ boolean ignoreWaySegmentCombination(Way w1, Way w2) {
if (isSubwayOrTramOrRazed(w2)) {
return true;
}
if (w1.hasKey(RAILWAY) && w2.hasKey(RAILWAY) && w1.hasTag(RAILWAY, "yard") != w2.hasTag(RAILWAY, "yard")) {
return true; // see #20089
}
if (isCoastline(w1) != isCoastline(w2)) {
return true;
}
Expand Down

0 comments on commit 0dbc805

Please sign in to comment.