public abstract class UnconnectedWays extends Test
Test.isPrimitiveUsable(OsmPrimitive)
to denote which kind of primitives can be handled.Modifier and Type | Class and Description |
---|---|
private class |
UnconnectedWays.MyWaySegment |
static class |
UnconnectedWays.UnconnectedHighways
Unconnected highways test.
|
static class |
UnconnectedWays.UnconnectedNaturalOrLanduse
Unconnected natural/landuse test.
|
static class |
UnconnectedWays.UnconnectedPower
Unconnected power ways test.
|
static class |
UnconnectedWays.UnconnectedRailways
Unconnected railways test.
|
static class |
UnconnectedWays.UnconnectedWaterways
Unconnected waterways test.
|
Test.TagTest
Modifier and Type | Field and Description |
---|---|
private Area |
dsArea |
private QuadBuckets<Node> |
endnodes |
private QuadBuckets<Node> |
endnodes_highway |
private QuadBuckets<Node> |
middlenodes |
private double |
mindist |
private double |
minmiddledist |
private Set<Node> |
othernodes |
protected static String |
PREFIX |
protected static int |
UNCONNECTED_WAYS |
private Set<UnconnectedWays.MyWaySegment> |
ways |
checkBeforeUpload, checkEnabled, description, enabled, errors, isBeforeUpload, name, partialSelection, progressMonitor, startTime, testBeforeUpload
Constructor and Description |
---|
UnconnectedWays(String title)
Constructs a new
UnconnectedWays test. |
Modifier and Type | Method and Description |
---|---|
protected void |
addErrors(Severity severity,
Map<Node,Way> errorMap,
String message) |
private void |
addNode(Node n,
QuadBuckets<Node> s) |
void |
endTest()
Notification of the end of the test.
|
protected Map<Node,Way> |
getConnectedWayEndNodesNearOtherWay() |
protected Map<Node,Way> |
getWayEndNodesNearOtherHighway() |
protected Map<Node,Way> |
getWayEndNodesNearOtherWay() |
protected Map<Node,Way> |
getWayNodesNearOtherWay() |
(package private) List<UnconnectedWays.MyWaySegment> |
getWaySegments(Way w) |
void |
startTest(ProgressMonitor monitor)
Start the test using a given progress monitor
|
void |
visit(Way w)
Visiting call for lines.
|
addGui, deletePrimitivesIfNeeded, equals, fixError, getErrors, getName, hashCode, initialize, isBuilding, isCanceled, isFixable, isPrimitiveUsable, ok, setBeforeUpload, setPartialSelection, testBeforeUpload, visit, visit, visit
visit
protected static final int UNCONNECTED_WAYS
private Set<UnconnectedWays.MyWaySegment> ways
private QuadBuckets<Node> endnodes
private QuadBuckets<Node> endnodes_highway
private QuadBuckets<Node> middlenodes
private Set<Node> othernodes
private double mindist
private double minmiddledist
public UnconnectedWays(String title)
UnconnectedWays
test.title
- The test titlepublic void startTest(ProgressMonitor monitor)
Test
protected Map<Node,Way> getWayEndNodesNearOtherHighway()
protected Map<Node,Way> getWayEndNodesNearOtherWay()
protected Map<Node,Way> getWayNodesNearOtherWay()
protected Map<Node,Way> getConnectedWayEndNodesNearOtherWay()
public void endTest()
Test
If you override this method, don't forget to cleanup progressMonitor
(most overrides call super.endTest()
to do this).
List<UnconnectedWays.MyWaySegment> getWaySegments(Way w)
private void addNode(Node n, QuadBuckets<Node> s)