Class OverlappingWays
java.lang.Object
org.openstreetmap.josm.data.validation.Test
org.openstreetmap.josm.data.validation.tests.OverlappingWays
- All Implemented Interfaces:
OsmPrimitiveVisitor
Tests if there are overlapping ways.
- Since:
- 3669
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openstreetmap.josm.data.validation.Test
Test.TagTest -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final Predicate<OsmPrimitive>protected static final ListPropertyprivate booleanprivate booleanprivate MultiMap<Pair<Node,Node>, WaySegment> Bag of all way segmentsprivate booleanprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intFields 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 voidanalyseOverlaps(Set<WaySegment> duplicated, Map<List<Way>, Set<WaySegment>> seenWays) protected static Set<WaySegment>voidendTest()Notification of the end of the test.private static booleanisOtherLinear(Way way) private static booleanvoidstartTest(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, fixError, getErrors, getName, getSource, initialize, isBuilding, isCanceled, isFixable, isPrimitiveUsable, isResidentialArea, ok, removeIrrelevantErrors, setBeforeUpload, setPartialSelection, setShowElements, testBeforeUpload, visit, visit, visit
-
Field Details
-
nodePairs
Bag of all way segments -
onlyKnownLinear
-
includeOther
-
ignoreLayer
-
OVERLAPPING_HIGHWAY
- See Also:
-
OVERLAPPING_RAILWAY
- See Also:
-
OVERLAPPING_WAY
- See Also:
-
OVERLAPPING_WATERWAY
- See Also:
-
OVERLAPPING_HIGHWAY_AREA
- See Also:
-
OVERLAPPING_RAILWAY_AREA
- See Also:
-
OVERLAPPING_WAY_AREA
- See Also:
-
OVERLAPPING_WATERWAY_AREA
- See Also:
-
DUPLICATE_WAY_SEGMENT
- See Also:
-
OVERLAPPING_HIGHWAY_LINEAR_WAY
- See Also:
-
OVERLAPPING_RAILWAY_LINEAR_WAY
- See Also:
-
OVERLAPPING_WATERWAY_LINEAR_WAY
- See Also:
-
IGNORED_KEYS
-
IGNORED
-
-
Constructor Details
-
OverlappingWays
public OverlappingWays()Constructor
-
-
Method Details
-
startTest
Description copied from class:TestStart the test using a given progress monitor -
parentMultipolygonConcernsArea
-
endTest
Description copied from class:TestNotification of the end of the test. The tester may perform additional actions and destroy the used structures.If you override this method, don't forget to cleanup
progressMonitor(most overrides callsuper.endTest()to do this). -
analyseOverlaps
-
isOtherLinear
-
checkDuplicateWaySegment
-
visit
Description copied from interface:OsmPrimitiveVisitorVisiting call for lines.- Specified by:
visitin interfaceOsmPrimitiveVisitor- Overrides:
visitin classTest- Parameters:
w- The way to inspect.
-