Changeset 6407 in josm


Ignore:
Timestamp:
2013-11-23T15:16:16+01:00 (11 years ago)
Author:
Don-vip
Message:

fix #9347 - incorrect roundabout validator message + support of highway=*_link

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/Highways.java

    r6368 r6407  
    3131    protected static final int MISSING_PEDESTRIAN_CROSSING = 2702;
    3232   
     33    /**
     34     * Classified highways in order of importance
     35     */
    3336    protected static final List<String> CLASSIFIED_HIGHWAYS = Arrays.asList(
    34             "motorway", "trunk", "primary", "secondary", "tertiary", "living_street", "residential", "unclassified");
     37            "motorway",  "motorway_link",
     38            "trunk",     "trunk_link",
     39            "primary",   "primary_link",
     40            "secondary", "secondary_link",
     41            "tertiary",  "tertiary_link",
     42            "living_street",
     43            "residential",
     44            "unclassified");
    3545
    3646    boolean leftByPedestrians = false;
     
    99109                    // Error when the highway tags do not match
    100110                    if (!w.get("highway").equals(s)) {
    101                         errors.add(new WrongRoundaboutHighway(w, tr("Incorrect roundabout (highway: {0} instead of {1})", w.get("highway"), s)));
     111                        errors.add(new WrongRoundaboutHighway(w, s));
    102112                    }
    103113                    break;
Note: See TracChangeset for help on using the changeset viewer.