Class UnconnectedWays.MyWaySegment
java.lang.Object
org.openstreetmap.josm.data.validation.tests.UnconnectedWays.MyWaySegment
- Enclosing class:
- UnconnectedWays
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate EastNorthcalcClosest(Node n) private BBoxgetBounds(double fudge) (package private) double(package private) booleanisConnectedTo(Node startNode) Check if the given node is connected to this segment using a reasonable short way.private booleanisConnectedTo(Node node, Set<Node> visited, double len, Way parent) Check if the given node is connected to this segment using a reasonable short way.private booleanisObstacle(Way w) private boolean(package private) Collection<Node>nearbyNodes(double dist) We know that any point near the line segment must be at least as close as the other end of the line, plus a little fudge for the distance away (dist)private booleanobstacleBetween(Node endnode)
-
Field Details
-
w
the way -
n1
-
n2
-
concernsArea
-
-
Constructor Details
-
MyWaySegment
MyWaySegment(Way w, Node n1, Node n2, boolean concersArea)
-
-
Method Details
-
isConnectedTo
Check if the given node is connected to this segment using a reasonable short way.- Parameters:
startNode- the node- Returns:
- true if a reasonable connection was found
-
isConnectedTo
Check if the given node is connected to this segment using a reasonable short way.- Parameters:
node- the given nodevisited- set of visited nodeslen- length of the travelled routeparent- the previous parent way- Returns:
- true if a reasonable connection was found
-
calcClosest
-
getDist
-
nearby
-
getBounds
-
nearbyNodes
We know that any point near the line segment must be at least as close as the other end of the line, plus a little fudge for the distance away (dist)- Parameters:
dist- fudge to add- Returns:
- collection of nearby nodes
-
obstacleBetween
-
isObstacle
-