Changeset 4610 in josm for trunk


Ignore:
Timestamp:
2011-11-26T16:55:47+01:00 (13 years ago)
Author:
stoecker
Message:

fix #7061 - patch by Daeron - fix costline validation

File:
1 edited

Legend:

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

    r4073 r4610  
    150150                List<OsmPrimitive> highlight = new ArrayList<OsmPrimitive>();
    151151
    152                 System.out.println("Unconnected coastline: " + c1.getId());
    153152                if (headWays == 0 && (downloadedArea == null || downloadedArea.contains(head.getCoor()))) {
    154                     System.out.println("headways: " +headWays+ " node: " + head.toString());
    155153                    highlight.add(head);
    156154                }
    157155                if (tailWays == 0 && (downloadedArea == null || downloadedArea.contains(tail.getCoor()))) {
    158                     System.out.println("tailways: " +tailWays+ " tail: " + tail.toString());
    159156                    highlight.add(tail);
    160157                }
     
    175172            } else if (reversed && next == prev) {
    176173                unordered = true;
     174            } else if ((headReversed || tailReversed) && headReversed != tailReversed) {
     175                unordered = true;
    177176            }
    178177
     
    180179                List<OsmPrimitive> highlight = new ArrayList<OsmPrimitive>();
    181180
    182                 System.out.println("Unordered coastline: " + c1.toString());
    183                 if (headWays > 1 || headUnordered || reversed) {
    184                     System.out.println("head: " + head.toString());
     181                if (headWays > 1 || headUnordered || headReversed || reversed) {
    185182                    highlight.add(head);
    186183                }
    187                 if (tailWays > 1 || tailUnordered || reversed) {
    188                     System.out.println("tail: " + tail.toString());
     184                if (tailWays > 1 || tailUnordered || tailReversed || reversed) {
    189185                    highlight.add(tail);
    190186                }
Note: See TracChangeset for help on using the changeset viewer.