Changeset 5359 in josm


Ignore:
Timestamp:
Jul 24, 2012 11:42:24 PM (11 months ago)
Author:
Don-vip
Message:

fix #7812 - Validator: warn about missing power=tower/pole within powerlines, even for first and last node of the line.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/PowerLines.java

    r5312 r5359  
    2626import org.openstreetmap.josm.tools.Geometry; 
    2727 
     28/** 
     29 * Checks for nodes in power lines/minor_lines that do not have a power=tower/pole tag.<br/> 
     30 * See #7812 for discussions about this test. 
     31 */ 
    2832public class PowerLines extends Test { 
    2933     
     
    5458                for (Node n : w.getNodes()) { 
    5559                    if (!isPowerTower(n)) { 
    56                         if (!w.isFirstLastNode(n) && !isPowerAllowed(n)) { 
     60                        if (!isPowerAllowed(n)) { 
    5761                            potentialErrors.add(new PowerLineError(n, w)); 
    5862                            erroneous = true; 
Note: See TracChangeset for help on using the changeset viewer.