Class RightAngleBuildingTest
java.lang.Object
org.openstreetmap.josm.data.validation.Test
org.openstreetmap.josm.data.validation.tests.RightAngleBuildingTest
- All Implemented Interfaces:
OsmPrimitiveVisitor
Checks for buildings with angles close to right angle.
- Since:
- 13670
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openstreetmap.josm.data.validation.Test
Test.TagTest -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleMaximum angle difference from right angle that is considered as invalid.protected doubleMinimum angle difference from right angle that is considered as invalid.Fields inherited from class org.openstreetmap.josm.data.validation.Test
checkBeforeUpload, checkEnabled, description, enabled, errors, IN_DOWNLOADED_AREA, IN_DOWNLOADED_AREA_STRICT, isBeforeUpload, name, partialSelection, progressMonitor, stopwatch, testBeforeUpload -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancheckAngle(double angle) voidstartTest(ProgressMonitor monitor) Start the test using a given progress monitorvoidVisiting call for lines.Methods inherited from class org.openstreetmap.josm.data.validation.Test
addGui, clear, deletePrimitivesIfNeeded, endTest, fixError, getErrors, getName, getSource, initialize, isBuilding, isCanceled, isFixable, isPrimitiveUsable, isResidentialArea, ok, removeIrrelevantErrors, setBeforeUpload, setPartialSelection, setShowElements, testBeforeUpload, visit, visit, visit
-
Field Details
-
maxAngleDelta
Maximum angle difference from right angle that is considered as invalid. -
minAngleDelta
Minimum angle difference from right angle that is considered as invalid.
-
-
Constructor Details
-
RightAngleBuildingTest
public RightAngleBuildingTest()Constructs a newRightAngleBuildingTesttest.
-
-
Method Details
-
visit
Description copied from interface:OsmPrimitiveVisitorVisiting call for lines.- Specified by:
visitin interfaceOsmPrimitiveVisitor- Overrides:
visitin classTest- Parameters:
w- The way to inspect.
-
startTest
Description copied from class:TestStart the test using a given progress monitor -
checkAngle
-