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 Geometry
private boolean
private Coordinate
private LineSegment
private int
private Coordinate
private double
private boolean
-
Constructor Summary
ConstructorsConstructorDescriptionNearestSegmentLocationFilter
(Coordinate testPt, boolean vertexOnly, double tolerance) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
checkSegment
(LineString lineStr, CoordinateSequence seq, int i) private void
checkVertex
(LineString lineStr, CoordinateSequence seq, int i) void
Performs an operation with or ongeom
.int
getIndex()
boolean
isDone()
boolean
boolean
isVertex()
-
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:GeometryComponentFilter
Performs an operation with or ongeom
.- Specified by:
filter
in interfaceGeometryComponentFilter
- Parameters:
geom
- aGeometry
to 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()
-