- Timestamp:
- 2013-09-21T00:10:46+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/validation/tests
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateNode.java
r6240 r6241 153 153 } 154 154 155 /** 156 * Returns the list of "duplicate nodes" errors for the given selection of node and parent test 157 * @param parentTest The parent test of returned errors 158 * @param nodes The nodes selction to look into 159 * @return the list of "duplicate nodes" errors 160 */ 155 161 public List<TestError> buildTestErrors(Test parentTest, List<Node> nodes) { 156 162 List<TestError> errors = new ArrayList<TestError>(); -
trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicatedWayNodes.java
r5287 r6241 15 15 import org.openstreetmap.josm.data.validation.TestError; 16 16 17 /** 18 * Checks for ways with identical consecutive nodes. 19 * @since 3669 20 */ 17 21 public class DuplicatedWayNodes extends Test { 18 22 protected static final int DUPLICATE_WAY_NODE = 501; 19 23 24 /** 25 * Constructs a new {@code DuplicatedWayNodes} test. 26 */ 20 27 public DuplicatedWayNodes() { 21 28 super(tr("Duplicated way nodes"), -
trunk/src/org/openstreetmap/josm/data/validation/tests/NodesDuplicatingWayTags.java
r6069 r6241 27 27 protected static final int NODE_DUPING_PARENT_WAY_TAGS = 2401; 28 28 29 /** 30 * Constructs a new {@code NodesDuplicatingWayTags} test. 31 */ 29 32 public NodesDuplicatingWayTags() { 30 33 super(tr("Nodes duplicating way tags"), -
trunk/src/org/openstreetmap/josm/data/validation/tests/NodesWithSameName.java
r6089 r6241 16 16 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 17 17 18 /** 19 * Finds nodes that have the same name (might be duplicates) 20 * @since 3669 21 */ 18 22 public class NodesWithSameName extends Test { 19 23 protected static final int SAME_NAME = 801; … … 21 25 private Map<String, List<Node>> namesToNodes; 22 26 27 /** 28 * Constructs a new {@code NodesWithSameName} test. 29 */ 23 30 public NodesWithSameName() { 24 31 super(tr("Nodes with same name"), -
trunk/src/org/openstreetmap/josm/data/validation/tests/OverlappingAreas.java
r5927 r6241 18 18 import org.openstreetmap.josm.tools.Utils; 19 19 20 /** 21 * Checks if areas overlap. 22 * @since 4448 23 */ 20 24 public class OverlappingAreas extends Test { 21 25 … … 23 27 protected QuadBuckets<Way> index = new QuadBuckets<Way>(); 24 28 29 /** 30 * Constructs a new {@code OverlappingAreas} test. 31 */ 25 32 public OverlappingAreas() { 26 33 super(tr("Overlapping Areas"), tr("This test checks if areas overlap.")); -
trunk/src/org/openstreetmap/josm/data/validation/tests/PowerLines.java
r6240 r6241 34 34 protected static final int POWER_LINES = 2501; 35 35 36 /** Values for {@code power} key interpreted as power lines */ 36 37 public static final Collection<String> POWER_LINE_TAGS = Arrays.asList("line", "minor_line"); 38 /** Values for {@code power} key interpreted as power towers */ 37 39 public static final Collection<String> POWER_TOWER_TAGS = Arrays.asList("tower", "pole"); 40 /** Values for {@code power} key interpreted as power stations */ 38 41 public static final Collection<String> POWER_STATION_TAGS = Arrays.asList("station", "sub_station", "plant", "generator"); 42 /** Values for {@code power} key interpreted as allowed power items */ 39 43 public static final Collection<String> POWER_ALLOWED_TAGS = Arrays.asList("switch", "transformer", "busbar", "generator"); 40 44 -
trunk/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java
r6240 r6241 83 83 private Collection<Node> nodes = new LinkedList<Node>(); 84 84 private Collection<Way> ways = new LinkedList<Way>(); 85 private Collection<Way> closedways = new LinkedList<Way>();86 85 private Collection<Way> openways = new LinkedList<Way>(); 87 86 private Collection<Relation> relations = new LinkedList<Relation>(); … … 129 128 } else if(m.isWay()) { 130 129 ri.ways.add(m.getWay()); 131 if (m.getWay().isClosed()) { 132 ri.closedways.add(m.getWay()); 133 } else { 130 if (!m.getWay().isClosed()) { 134 131 ri.openways.add(m.getWay()); 135 132 } -
trunk/src/org/openstreetmap/josm/data/validation/tests/SelfIntersectingWay.java
r4869 r6241 20 20 protected static final int SELF_INTERSECT = 401; 21 21 22 /** 23 * Constructs a new {@code SelfIntersectingWay} test. 24 */ 22 25 public SelfIntersectingWay() { 23 26 super(tr("Self-intersecting ways"), -
trunk/src/org/openstreetmap/josm/data/validation/tests/TurnrestrictionTest.java
r6069 r6241 18 18 import org.openstreetmap.josm.data.validation.TestError; 19 19 20 /** 21 * Checks if turnrestrictions are valid 22 * @since 3669 23 */ 20 24 public class TurnrestrictionTest extends Test { 21 25 … … 36 40 protected static final int SUPERFLUOUS = 1815; 37 41 42 /** 43 * Constructs a new {@code TurnrestrictionTest}. 44 */ 38 45 public TurnrestrictionTest() { 39 46 super(tr("Turnrestrictions"), tr("This test checks if turnrestrictions are valid")); -
trunk/src/org/openstreetmap/josm/data/validation/tests/UnconnectedWays.java
r6240 r6241 21 21 import org.openstreetmap.josm.data.coor.LatLon; 22 22 import org.openstreetmap.josm.data.osm.BBox; 23 import org.openstreetmap.josm.data.osm.DataSet;24 23 import org.openstreetmap.josm.data.osm.Node; 25 24 import org.openstreetmap.josm.data.osm.OsmUtils; … … 48 47 private Set<Node> othernodes; // nodes appearing at least twice 49 48 private Area dsArea; 50 private DataSet ds;51 49 52 50 private double mindist; … … 71 69 mindist = Main.pref.getDouble(PREFIX + ".node_way_distance", 10.0); 72 70 minmiddledist = Main.pref.getDouble(PREFIX + ".way_way_distance", 0.0); 73 this.ds = Main.main.getCurrentDataSet(); 74 this.dsArea = ds.getDataSourceArea(); 71 this.dsArea = Main.main.getCurrentDataSet().getDataSourceArea(); 75 72 } 76 73 -
trunk/src/org/openstreetmap/josm/data/validation/tests/WayConnectedToArea.java
r5927 r6241 16 16 import org.openstreetmap.josm.gui.mappaint.ElemStyles; 17 17 18 /** 19 * Checks for ways connected to areas. 20 * @since 4682 21 */ 18 22 public class WayConnectedToArea extends Test { 19 23 24 /** 25 * Constructs a new {@code WayConnectedToArea} test. 26 */ 20 27 public WayConnectedToArea() { 21 28 super(tr("Way connected to Area"), tr("Checks for ways connected to areas."));
Note:
See TracChangeset
for help on using the changeset viewer.