Class GeometryPointLocater.NearestSegmentLocationFilter
java.lang.Object
org.locationtech.jtstest.testbuilder.geom.GeometryPointLocater.NearestSegmentLocationFilter
- All Implemented Interfaces:
GeometryComponentFilter
- Enclosing class:
GeometryPointLocater
static class GeometryPointLocater.NearestSegmentLocationFilter
extends Object
implements GeometryComponentFilter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Geometryprivate booleanprivate Coordinateprivate LineSegmentprivate intprivate Coordinateprivate doubleprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionNearestSegmentLocationFilter(Coordinate testPt, boolean vertexOnly, double tolerance) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckSegment(LineString lineStr, CoordinateSequence seq, int i) private voidcheckVertex(LineString lineStr, CoordinateSequence seq, int i) voidPerforms an operation with or ongeom.intgetIndex()booleanisDone()booleanbooleanisVertex()
-
Field Details
-
tolerance
private double tolerance -
testPt
-
vertexOnly
private boolean vertexOnly -
component
-
segIndex
private int segIndex -
nearestPt
-
isVertex
private boolean isVertex -
seg
-
-
Constructor Details
-
NearestSegmentLocationFilter
-
-
Method Details
-
filter
Description copied from interface:GeometryComponentFilterPerforms an operation with or ongeom.- Specified by:
filterin interfaceGeometryComponentFilter- Parameters:
geom- aGeometryto which the filter is applied.
-
checkSegment
-
checkVertex
-
getComponent
-
getCoordinate
-
getIndex
public int getIndex() -
isVertex
public boolean isVertex() -
isDone
public boolean isDone() -
isGeometryChanged
public boolean isGeometryChanged()
-