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 int
SELF_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 newSelfIntersectingWay
test.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
isSelfIntersecting(Way way)
Check if the given way is self-intersectingvoid
visit(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, 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 newSelfIntersectingWay
test.
-
-
Method Detail
-
visit
public void visit(Way w)
Description copied from interface:OsmPrimitiveVisitor
Visiting call for lines.- Specified by:
visit
in interfaceOsmPrimitiveVisitor
- Overrides:
visit
in 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:
true
if way contains some nodes more than once- Since:
- 17386
- See Also:
CrossingWays.SelfCrossing
-
-