Ignore:
Timestamp:
2011-02-02T16:56:07+01:00 (9 years ago)
Author:
stoecker
Message:

see #5899 - support different display of closed ways and areas

Location:
trunk/src/org/openstreetmap/josm/data/validation/tests
Files:
3 edited

Legend:

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

    r3836 r3844  
    128128    public void visit(Relation r) {
    129129        nonClosedWays.clear();
    130         if ("multipolygon".equals(r.get("type"))) {
     130        if (r.isMultipolygon()) {
    131131            checkMembersAndRoles(r);
    132132
  • trunk/src/org/openstreetmap/josm/data/validation/tests/UnclosedWays.java

    r3674 r3844  
    111111        if (type != null && !w.isClosed()) {
    112112            for (OsmPrimitive parent: w.getReferrers()) {
    113                 if (parent instanceof Relation && "multipolygon".equals(parent.get("type")))
     113                if (parent instanceof Relation && ((Relation)parent).isMultipolygon())
    114114                    return;
    115115            }
  • trunk/src/org/openstreetmap/josm/data/validation/tests/UntaggedWay.java

    r3671 r3844  
    114114        multipolygonways = new LinkedList<Way>();
    115115        for (Relation r : Main.main.getCurrentDataSet().getRelations()) {
    116             if (r.isUsable() && "multipolygon".equals(r.get("type"))) {
     116            if (r.isUsable() && r.isMultipolygon()) {
    117117                for (RelationMember m : r.getMembers()) {
    118118                    if (m.getMember() != null && m.getMember() instanceof Way &&
Note: See TracChangeset for help on using the changeset viewer.