public class DuplicateNode extends Test
Modifier and Type | Class and Description |
---|---|
private static class |
DuplicateNode.NodeHash |
Test.TagTest
Modifier and Type | Field and Description |
---|---|
protected static int |
DUPLICATE_NODE |
protected static int |
DUPLICATE_NODE_BOUNDARY |
protected static int |
DUPLICATE_NODE_BUILDING |
protected static int |
DUPLICATE_NODE_HIGHWAY |
protected static int |
DUPLICATE_NODE_LANDUSE |
protected static int |
DUPLICATE_NODE_MIXED |
protected static int |
DUPLICATE_NODE_NATURAL |
protected static int |
DUPLICATE_NODE_OTHER |
protected static int |
DUPLICATE_NODE_POWER |
protected static int |
DUPLICATE_NODE_RAILWAY |
protected static int |
DUPLICATE_NODE_WATERWAY |
private Storage<java.lang.Object> |
potentialDuplicates
The map of potential duplicates.
|
private static java.lang.String[] |
TYPES |
checkBeforeUpload, checkEnabled, description, enabled, errors, IN_DOWNLOADED_AREA, IN_DOWNLOADED_AREA_STRICT, isBeforeUpload, name, partialSelection, progressMonitor, startTime, testBeforeUpload
Constructor and Description |
---|
DuplicateNode()
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.util.List<TestError> |
buildTestErrors(Test parentTest,
java.util.List<Node> nodes)
Returns the list of "duplicate nodes" errors for the given selection of node and parent test
|
void |
endTest()
Notification of the end of the test.
|
Command |
fixError(TestError testError)
Merge the nodes into one.
|
boolean |
isFixable(TestError testError)
Returns true if the given error can be fixed automatically
|
void |
startTest(ProgressMonitor monitor)
Start the test using a given progress monitor
|
void |
visit(Node n)
Visiting call for points.
|
addGui, clear, compareTo, deletePrimitivesIfNeeded, equals, getErrors, getName, hashCode, initialize, isBuilding, isCanceled, isPrimitiveUsable, isResidentialArea, ok, setBeforeUpload, setPartialSelection, setShowElements, testBeforeUpload, visit, visit, visit
protected static final int DUPLICATE_NODE
protected static final int DUPLICATE_NODE_MIXED
protected static final int DUPLICATE_NODE_OTHER
protected static final int DUPLICATE_NODE_BUILDING
protected static final int DUPLICATE_NODE_BOUNDARY
protected static final int DUPLICATE_NODE_HIGHWAY
protected static final int DUPLICATE_NODE_LANDUSE
protected static final int DUPLICATE_NODE_NATURAL
protected static final int DUPLICATE_NODE_POWER
protected static final int DUPLICATE_NODE_RAILWAY
protected static final int DUPLICATE_NODE_WATERWAY
private static final java.lang.String[] TYPES
private Storage<java.lang.Object> potentialDuplicates
public DuplicateNode()
public void startTest(ProgressMonitor monitor)
Test
public void endTest()
Test
If you override this method, don't forget to cleanup progressMonitor
(most overrides call super.endTest()
to do this).
public java.util.List<TestError> buildTestErrors(Test parentTest, java.util.List<Node> nodes)
parentTest
- The parent test of returned errorsnodes
- The nodes selction to look intopublic void visit(Node n)
OsmPrimitiveVisitor
visit
in interface OsmPrimitiveVisitor
visit
in class Test
n
- The node to inspect.public Command fixError(TestError testError)