Changeset 15364 in josm for trunk


Ignore:
Timestamp:
2019-09-19T16:37:15+02:00 (5 years ago)
Author:
Don-vip
Message:

fix #18047 - consider junction=circular like junction=roundabout

Location:
trunk/src/org/openstreetmap/josm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java

    r15007 r15364  
    7474                "waterway=stream | waterway=river | waterway=ditch | waterway=drain | "+
    7575                "(\"piste:type\"=downhill & -area=yes) | (\"piste:type\"=sled & -area=yes) | (man_made=\"piste:halfpipe\" & -area=yes) | "+
    76                 "junction=roundabout | (highway=motorway & -oneway=no & -oneway=reversible) | "+
     76                "junction=circular | junction=roundabout | (highway=motorway & -oneway=no & -oneway=reversible) | "+
    7777                "(highway=motorway_link & -oneway=no & -oneway=reversible)";
    7878
  • trunk/src/org/openstreetmap/josm/data/validation/tests/Highways.java

    r14779 r15364  
    9797    public void visit(Way w) {
    9898        if (w.isUsable()) {
    99             if (w.isClosed() && w.hasTag(HIGHWAY, CLASSIFIED_HIGHWAYS) && w.hasTag("junction", "roundabout")
     99            if (w.isClosed() && w.hasTag(HIGHWAY, CLASSIFIED_HIGHWAYS) && w.hasTag("junction", "circular", "roundabout")
    100100                    && IN_DOWNLOADED_AREA_STRICT.test(w)) {
    101101                // TODO: find out how to handle splitted roundabouts (see #12841)
     
    191191            // But if we have more than a single adjacent class, and one of them is a roundabout, that's an error
    192192            for (Way w : sameClass) {
    193                 if (w.hasTag("junction", "roundabout")) {
     193                if (w.hasTag("junction", "circular", "roundabout")) {
    194194                    return false;
    195195                }
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/sort/RelationSortUtils.java

    r12658 r15364  
    3232
    3333    static Direction roundaboutType(Way w) {
    34         if (w != null && w.hasTag("junction", "roundabout")) {
     34        if (w != null && w.hasTag("junction", "circular", "roundabout")) {
    3535            int nodesCount = w.getNodesCount();
    3636            if (nodesCount > 2 && nodesCount < 200) {
Note: See TracChangeset for help on using the changeset viewer.