- Timestamp:
- 2016-01-05T15:43:10+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/PowerLines.java
r8882 r9321 13 13 14 14 import org.openstreetmap.josm.Main; 15 import org.openstreetmap.josm.actions.search.SearchCompiler.InDataSourceArea; 15 16 import org.openstreetmap.josm.command.ChangePropertyCommand; 16 17 import org.openstreetmap.josm.command.Command; … … 27 28 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 28 29 import org.openstreetmap.josm.tools.Geometry; 30 import org.openstreetmap.josm.tools.Predicate; 29 31 30 32 /** … … 45 47 protected static final Collection<String> POWER_ALLOWED_TAGS = Arrays.asList("switch", "transformer", "busbar", "generator", "switchgear"); 46 48 49 protected static final Predicate<OsmPrimitive> IN_DOWNLOADED_AREA = new InDataSourceArea(false); 50 47 51 private final Map<Way, String> towerPoleTagMap = new HashMap<>(); 48 52 … … 67 71 for (Node n : w.getNodes()) { 68 72 if (!isPowerTower(n)) { 69 if (!isPowerAllowed(n) ) {73 if (!isPowerAllowed(n) && IN_DOWNLOADED_AREA.evaluate(n)) { 70 74 if (!w.isFirstLastNode(n) || !isPowerStation(n)) { 71 75 potentialErrors.add(new PowerLineError(n, w));
Note:
See TracChangeset
for help on using the changeset viewer.