Changeset 6863 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2014-02-17T19:56:28+01:00 (10 years ago)
Author:
simon04
Message:

see #9545 fix #9725 - Validator: add warning "Route scheme (public_transport or legacy) is unspecified"

File:
1 edited

Legend:

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

    r6735 r6863  
    115115            }
    116116        }
    117         if (allroles.isEmpty()) {
     117        if (allroles.isEmpty() && n.hasTag("type", "route")
     118                && n.hasTag("route", "train", "subway", "monorail", "tram", "bus", "trolleybus", "aerialway", "ferry")) {
     119            errors.add(new TestError(this, Severity.WARNING,
     120                    tr("Route scheme (public_transport or legacy) is unspecified. Add {0}", "public_transport:version"),
     121                    RELATION_UNKNOWN, n));
     122        } else if (allroles.isEmpty()) {
    118123            errors.add( new TestError(this, Severity.WARNING, tr("Relation type is unknown"),
    119124                    RELATION_UNKNOWN, n) );
Note: See TracChangeset for help on using the changeset viewer.