org.openstreetmap.josm.data.validation.tests
Class NodesDuplicatingWayTags

java.lang.Object
  extended by org.openstreetmap.josm.data.osm.visitor.AbstractVisitor
      extended by org.openstreetmap.josm.data.validation.Test
          extended by org.openstreetmap.josm.data.validation.tests.NodesDuplicatingWayTags
All Implemented Interfaces:
Visitor

public class NodesDuplicatingWayTags
extends Test

Warn when a node has the same tags as its parent way. The check is rather conservative: it warns only when the tags are identical and important (i.e., no warning for a way and a node that only have a "source=PGS" tag).

See JOSM ticket #7639 for the original request.


Field Summary
protected static int NODE_DUPING_PARENT_WAY_TAGS
           
 
Fields inherited from class org.openstreetmap.josm.data.validation.Test
checkBeforeUpload, checkEnabled, description, enabled, errors, isBeforeUpload, name, partialSelection, progressMonitor, testBeforeUpload
 
Constructor Summary
NodesDuplicatingWayTags()
           
 
Method Summary
 void visit(Way way)
          Visiting call for lines.
 
Methods inherited from class org.openstreetmap.josm.data.validation.Test
addGui, deletePrimitivesIfNeeded, endTest, fixError, getErrors, getName, initialize, isBuilding, isCanceled, isFixable, ok, setBeforeUpload, setPartialSelection, startTest, testBeforeUpload, visit, visit, visit
 
Methods inherited from class org.openstreetmap.josm.data.osm.visitor.AbstractVisitor
visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NODE_DUPING_PARENT_WAY_TAGS

protected static final int NODE_DUPING_PARENT_WAY_TAGS
See Also:
Constant Field Values
Constructor Detail

NodesDuplicatingWayTags

public NodesDuplicatingWayTags()
Method Detail

visit

public void visit(Way way)
Description copied from interface: Visitor
Visiting call for lines.

Specified by:
visit in interface Visitor
Overrides:
visit in class Test
Parameters:
way - The way to inspect.


JOSM