Changeset 17313 in osm for applications/editors/josm


Ignore:
Timestamp:
2009-08-28T11:22:08+02:00 (15 years ago)
Author:
dmuecke
Message:

[o3059] - Added way type building into crossing way test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/CrossingWays.java

    r16435 r17313  
    4444    {
    4545        super(tr("Crossing ways."),
    46               tr("This test checks if two roads, railways or waterways crosses in the same layer, but are not connected by a node."));
     46              tr("This test checks if two roads, railways, waterways or buildings crosses in the same layer, but are not connected by a node."));
    4747    }
    4848
     
    7474        String railway1 = w.get("railway");
    7575        boolean isSubway1 = railway1 != null && railway1.equals("subway");
    76         if( w.get("highway") == null && w.get("waterway") == null && (railway1 == null || isSubway1)  && !isCoastline1)
     76        boolean isBuilding = false;
     77        if(w.get("building") != null)
     78            isBuilding = true;
     79       
     80        if( w.get("highway") == null && w.get("waterway") == null && (railway1 == null || isSubway1)  && !isCoastline1 && !isBuilding)
    7781            return;
    7882
     
    116120
    117121                        errors.add(new TestError(this, Severity.WARNING,
    118                         tr("Crossing ways"), CROSSING_WAYS, prims, highlight));
     122                        isBuilding ? tr("Crossing buildings") : tr("Crossing ways"), CROSSING_WAYS, prims, highlight));
    119123                        ways_seen.put(prims, highlight);
    120124                    }
Note: See TracChangeset for help on using the changeset viewer.