Class SelfIntersectingWay
- java.lang.Object
-
- org.openstreetmap.josm.data.validation.Test
-
- org.openstreetmap.josm.data.validation.tests.SelfIntersectingWay
-
- All Implemented Interfaces:
OsmPrimitiveVisitor
public class SelfIntersectingWay extends Test
Checks for self-intersecting ways.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.data.validation.Test
Test.TagTest
-
-
Field Summary
Fields Modifier and Type Field Description protected static intSELF_INTERSECT-
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 Constructor Description SelfIntersectingWay()Constructs a newSelfIntersectingWaytest.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanisSelfIntersecting(Way way)Check if the given way is self-intersectingvoidvisit(Way w)Visiting 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, startTest, testBeforeUpload, visit, visit, visit
-
-
-
-
Field Detail
-
SELF_INTERSECT
protected static final int SELF_INTERSECT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SelfIntersectingWay
public SelfIntersectingWay()
Constructs a newSelfIntersectingWaytest.
-
-
Method Detail
-
visit
public void visit(Way w)
Description copied from interface:OsmPrimitiveVisitorVisiting call for lines.- Specified by:
visitin interfaceOsmPrimitiveVisitor- Overrides:
visitin classTest- Parameters:
w- The way to inspect.
-
isSelfIntersecting
public static boolean isSelfIntersecting(Way way)
Check if the given way is self-intersecting- Parameters:
way- the way to check- Returns:
trueif way contains some nodes more than once- Since:
- 17386
- See Also:
CrossingWays.SelfCrossing
-
-