Class GeometryPointLocater
java.lang.Object
org.locationtech.jtstest.testbuilder.geom.GeometryPointLocater
Finds a vertex or a point on a segment of a Geometry
which lies within a tolerance of a given point.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetIndex()getLocation(Coordinate testPt, boolean vertexOnly, double tolerance) booleanisVertex()static GeometryLocationlocateNonVertexPoint(Geometry geom, Coordinate testPt, double tolerance) static GeometryLocationlocateVertex(Geometry geom, Coordinate testPt, double tolerance)
-
Field Details
-
geom
-
locationPt
-
segIndex
private int segIndex -
isVertex
private boolean isVertex
-
-
Constructor Details
-
GeometryPointLocater
-
-
Method Details
-
locateNonVertexPoint
public static GeometryLocation locateNonVertexPoint(Geometry geom, Coordinate testPt, double tolerance) -
locateVertex
-
getLocation
-
getIndex
public int getIndex() -
isVertex
public boolean isVertex()
-