Changeset 4073 in josm for trunk/src/org/openstreetmap/josm/data/validation/tests/Coastlines.java
- Timestamp:
- 2011-05-04T22:03:53+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/Coastlines.java
r3698 r4073 14 14 import org.openstreetmap.josm.command.ChangeCommand; 15 15 import org.openstreetmap.josm.command.Command; 16 import org.openstreetmap.josm.data.osm.Node; 16 17 import org.openstreetmap.josm.data.osm.OsmPrimitive; 17 import org.openstreetmap.josm.data.osm.Node;18 18 import org.openstreetmap.josm.data.osm.Way; 19 19 import org.openstreetmap.josm.data.validation.Severity; … … 44 44 public Coastlines() { 45 45 super(tr("Coastlines."), 46 tr("This test checks that coastlines are correct.")); 46 tr("This test checks that coastlines are correct.")); 47 47 } 48 48 … … 67 67 Node tail = c1.lastNode(); 68 68 69 if (head.equals(tail)) { 69 if (c1.getNodesCount() == 0 || head.equals(tail)) { 70 70 continue; 71 71 } … … 162 162 if (highlight.size() > 0) { 163 163 errors.add(new TestError(this, Severity.ERROR, tr("Unconnected coastline"), 164 UNCONNECTED_COASTLINE, primitives, highlight));164 UNCONNECTED_COASTLINE, primitives, highlight)); 165 165 } 166 166 } … … 191 191 192 192 errors.add(new TestError(this, Severity.ERROR, tr("Unordered coastline"), 193 UNORDERED_COASTLINE, primitives, highlight));193 UNORDERED_COASTLINE, primitives, highlight)); 194 194 } 195 195 else if (reversed) { 196 196 errors.add(new TestError(this, Severity.ERROR, tr("Reversed coastline"), 197 REVERSED_COASTLINE, primitives));197 REVERSED_COASTLINE, primitives)); 198 198 } 199 199 }
Note:
See TracChangeset
for help on using the changeset viewer.
