public class BuildingInBuilding extends Test
| Modifier and Type | Class and Description |
|---|---|
protected class |
BuildingInBuilding.MultiPolygonMembers |
| Modifier and Type | Field and Description |
|---|---|
protected static int |
BUILDING_INSIDE_BUILDING |
private QuadBuckets<Way> |
index |
private List<OsmPrimitive> |
primitivesToCheck |
checkBeforeUpload, checkEnabled, description, enabled, errors, isBeforeUpload, name, partialSelection, progressMonitor, startTime, testBeforeUpload| Constructor and Description |
|---|
BuildingInBuilding()
Constructs a new
BuildingInBuilding test. |
| Modifier and Type | Method and Description |
|---|---|
void |
endTest()
Notification of the end of the test.
|
private static boolean |
isInPolygon(Node n,
List<Node> polygon) |
protected boolean |
isWayInsideMultiPolygon(Way object,
Relation multiPolygon) |
protected boolean |
sameLayers(Way w1,
Way w2) |
void |
visit(Node n)
Visiting call for points.
|
void |
visit(Relation r)
Visiting call for relations.
|
void |
visit(Way w)
Visiting call for lines.
|
addGui, deletePrimitivesIfNeeded, fixError, getErrors, getName, initialize, isBuilding, isCanceled, isFixable, isPrimitiveUsable, ok, setBeforeUpload, setPartialSelection, startTest, testBeforeUpload, visitvisitprotected static final int BUILDING_INSIDE_BUILDING
private final List<OsmPrimitive> primitivesToCheck
private final QuadBuckets<Way> index
public BuildingInBuilding()
BuildingInBuilding test.public void visit(Node n)
Visitorpublic void visit(Relation r)
Visitorprivate static boolean isInPolygon(Node n, List<Node> polygon)
protected boolean sameLayers(Way w1, Way w2)
protected boolean isWayInsideMultiPolygon(Way object, Relation multiPolygon)
public void endTest()
Test
If you override this method, don't forget to cleanup Test.progressMonitor
(most overrides call super.endTest() to do this).