Class GeometryPointLocater
- java.lang.Object
-
- org.locationtech.jtstest.testbuilder.geom.GeometryPointLocater
-
public class GeometryPointLocater extends java.lang.Object
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 Classes Modifier and Type Class Description (package private) static class
GeometryPointLocater.NearestSegmentLocationFilter
-
Field Summary
Fields Modifier and Type Field Description private Geometry
geom
private boolean
isVertex
private Coordinate
locationPt
private int
segIndex
-
Constructor Summary
Constructors Constructor Description GeometryPointLocater(Geometry geom)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIndex()
GeometryLocation
getLocation(Coordinate testPt, boolean vertexOnly, double tolerance)
boolean
isVertex()
static GeometryLocation
locateNonVertexPoint(Geometry geom, Coordinate testPt, double tolerance)
static GeometryLocation
locateVertex(Geometry geom, Coordinate testPt, double tolerance)
-
-
-
Field Detail
-
geom
private Geometry geom
-
locationPt
private Coordinate locationPt
-
segIndex
private int segIndex
-
isVertex
private boolean isVertex
-
-
Constructor Detail
-
GeometryPointLocater
public GeometryPointLocater(Geometry geom)
-
-
Method Detail
-
locateNonVertexPoint
public static GeometryLocation locateNonVertexPoint(Geometry geom, Coordinate testPt, double tolerance)
-
locateVertex
public static GeometryLocation locateVertex(Geometry geom, Coordinate testPt, double tolerance)
-
getLocation
public GeometryLocation getLocation(Coordinate testPt, boolean vertexOnly, double tolerance)
-
getIndex
public int getIndex()
-
isVertex
public boolean isVertex()
-
-