Changeset 5908 in josm


Ignore:
Timestamp:
2013-04-29T00:05:57+02:00 (12 years ago)
Author:
Don-vip
Message:

fix #8641 - Do not raise warning for address nodes with no addr:street in interpolation way

File:
1 edited

Legend:

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

    r5776 r5908  
    8585    public void visit(Node n) {
    8686        List<Relation> associatedStreets = getAndCheckAssociatedStreets(n);
    87         // Find house number without proper location (neither addr:street, associatedStreet or addr:place)
     87        // Find house number without proper location (neither addr:street, associatedStreet, addr:place or addr:interpolation)
    8888        if (n.hasKey(ADDR_HOUSE_NUMBER) && !n.hasKey(ADDR_STREET) && !n.hasKey(ADDR_PLACE)) {
    8989            for (Relation r : associatedStreets) {
    9090                if (r.hasTag("type", ASSOCIATED_STREET)) {
     91                    return;
     92                }
     93            }
     94            for (Way w : OsmPrimitive.getFilteredList(n.getReferrers(), Way.class)) {
     95                if (w.hasKey(ADDR_INTERPOLATION) && w.hasKey(ADDR_STREET)) {
    9196                    return;
    9297                }
Note: See TracChangeset for help on using the changeset viewer.