Changeset 18425 in osm for applications/editors/josm/plugins/validator
- Timestamp:
- 2009-11-02T21:06:59+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/validator
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/build.xml
r18391 r18425 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="23 55"/>28 <attribute name="Plugin-Mainversion" value="2388"/> 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/tests/UnconnectedWays.java
r18396 r18425 10 10 import java.util.Collection; 11 11 import java.util.Collections; 12 import java.util.List;13 12 import java.util.HashMap; 14 13 import java.util.HashSet; 14 import java.util.List; 15 15 import java.util.Map; 16 16 import java.util.Set; 17 17 18 18 import org.openstreetmap.josm.Main; 19 import org.openstreetmap.josm.data.coor.EastNorth; 19 20 import org.openstreetmap.josm.data.coor.LatLon; 20 import org.openstreetmap.josm.data. coor.EastNorth;21 import org.openstreetmap.josm.data.osm.DataSet; 21 22 import org.openstreetmap.josm.data.osm.Node; 22 23 import org.openstreetmap.josm.data.osm.OsmUtils; 24 import org.openstreetmap.josm.data.osm.QuadBuckets; 23 25 import org.openstreetmap.josm.data.osm.Way; 26 import org.openstreetmap.josm.data.osm.QuadBuckets.BBox; 24 27 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 25 import org.openstreetmap.josm.data.osm.DataSet;26 import org.openstreetmap.josm.data.osm.QuadBuckets;27 28 import org.openstreetmap.josm.plugins.validator.PreferenceEditor; 28 29 import org.openstreetmap.josm.plugins.validator.Severity; … … 74 75 this.ds = Main.main.getCurrentDataSet(); 75 76 this.ds_area = ds.getDataSourceArea(); 76 // This is temporary until we get proper 77 // reindexing in the dataset code. 78 ArrayList<Node> ntmp = new ArrayList<Node>(ds.nodes); 79 ds.nodes.clear(); 80 ds.nodes.addAll(ntmp); 81 ArrayList<Way> wtmp = new ArrayList<Way>(ds.ways); 82 ds.ways.clear(); 83 ds.ways.addAll(wtmp); 84 } 77 this.ds.reindexAll(); 78 } 85 79 86 80 @Override … … 306 300 // overlap a bit and can return duplicate nodes. 307 301 nearbyNodeCache = null; 308 nodecache = ds.nodes;309 302 List<LatLon> bounds = this.getBounds(dist); 310 List<Node> found_nodes = nodecache.search(bounds.get(0), bounds.get(1));303 List<Node> found_nodes = ds.searchNodes(new BBox(bounds.get(0), bounds.get(1))); 311 304 if (found_nodes == null) 312 305 return Collections.emptySet(); -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UntaggedNode.java
r17722 r18425 58 58 } 59 59 } 60 for (Way w : Main.main.getCurrentDataSet(). ways) {60 for (Way w : Main.main.getCurrentDataSet().getWays()) { 61 61 visit(w); 62 62 } -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UntaggedWay.java
r18088 r18425 117 117 super.startTest(monitor); 118 118 multipolygonways = new LinkedList<Way>(); 119 for ( final Relation r : Main.main.getCurrentDataSet().relations)119 for (Relation r : Main.main.getCurrentDataSet().getRelations()) 120 120 { 121 121 if(r.isUsable() && "multipolygon".equals(r.get("type")))
Note:
See TracChangeset
for help on using the changeset viewer.