Changeset 18092 in osm for applications/editors/josm/plugins/validator
- Timestamp:
- 2009-10-11T23:06:32+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/validator
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/build.xml
r18069 r18092 26 26 <attribute name="Plugin-Description" value="An OSM data validator. It checks for problems in data, and provides fixes for the common ones. Spellcheck integrated for tag names."/> 27 27 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Validator"/> 28 <attribute name="Plugin-Mainversion" value="22 63"/>28 <attribute name="Plugin-Mainversion" value="2273"/> 29 29 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 30 30 </manifest> -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/TestError.java
r17479 r18092 153 153 for (OsmPrimitive o : primitives) { 154 154 // ignore data not yet uploaded 155 if (o. getId() == 0)155 if (o.isNew()) 156 156 return null; 157 157 String type = "u"; -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/DuplicateNode.java
r17722 r18092 4 4 5 5 import java.awt.geom.Area; 6 7 6 import java.util.Collection; 8 7 import java.util.LinkedList; … … 31 30 */ 32 31 public class DuplicateNode extends Test{ 33 32 34 33 private static BackreferencedDataSet backreferences; 35 34 36 35 public static BackreferencedDataSet getBackreferenceDataSet() { 37 36 if (backreferences == null) { … … 41 40 return backreferences; 42 41 } 43 42 44 43 public static void clearBackreferences() { 45 44 backreferences = null; 46 45 } 47 46 48 47 protected static int DUPLICATE_NODE = 1; 49 48 … … 132 131 if (a != null) { 133 132 for (OsmPrimitive osm : del) { 134 if (osm instanceof Node && osm.getId() != 0) {133 if (osm instanceof Node && !osm.isNew()) { 135 134 Node n = (Node) osm; 136 135 if (!a.contains(n.getCoor())) { -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/DuplicateWay.java
r17722 r18092 6 6 import java.util.LinkedList; 7 7 import java.util.List; 8 import java.util.Map; 8 9 import java.util.Vector; 9 import java.util.Map;10 10 11 11 import org.openstreetmap.josm.Main; … … 15 15 import org.openstreetmap.josm.data.coor.LatLon; 16 16 import org.openstreetmap.josm.data.osm.Node; 17 import org.openstreetmap.josm.data.osm.OsmPrimitive; 17 18 import org.openstreetmap.josm.data.osm.Way; 18 import org.openstreetmap.josm.data.osm.OsmPrimitive;19 19 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 20 20 import org.openstreetmap.josm.plugins.validator.Severity; … … 120 120 // or one "at random" if no such exists. Rest of the ways will be deleted 121 121 for (Way w: ways) { 122 if ( w.getId() > 0) {122 if (!w.isNew()) { 123 123 if (idToKeep == 0 || w.getId() < idToKeep) idToKeep = w.getId(); 124 124 }
Note:
See TracChangeset
for help on using the changeset viewer.