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 java.lang.Object implements GeometryComponentFilter
-
-
Field Summary
Fields Modifier and Type Field Description private Geometry
component
private boolean
isVertex
private Coordinate
nearestPt
private LineSegment
seg
private int
segIndex
private Coordinate
testPt
private double
tolerance
private boolean
vertexOnly
-
Constructor Summary
Constructors Constructor Description NearestSegmentLocationFilter(Coordinate testPt, boolean vertexOnly, double tolerance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
checkSegment(LineString lineStr, CoordinateSequence seq, int i)
private void
checkVertex(LineString lineStr, CoordinateSequence seq, int i)
void
filter(Geometry geom)
Performs an operation with or ongeom
.Geometry
getComponent()
Coordinate
getCoordinate()
int
getIndex()
boolean
isDone()
boolean
isGeometryChanged()
boolean
isVertex()
-
-
-
Field Detail
-
tolerance
private double tolerance
-
testPt
private Coordinate testPt
-
vertexOnly
private boolean vertexOnly
-
component
private Geometry component
-
segIndex
private int segIndex
-
nearestPt
private Coordinate nearestPt
-
isVertex
private boolean isVertex
-
seg
private LineSegment seg
-
-
Constructor Detail
-
NearestSegmentLocationFilter
public NearestSegmentLocationFilter(Coordinate testPt, boolean vertexOnly, double tolerance)
-
-
Method Detail
-
filter
public void filter(Geometry geom)
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
private void checkSegment(LineString lineStr, CoordinateSequence seq, int i)
-
checkVertex
private void checkVertex(LineString lineStr, CoordinateSequence seq, int i)
-
getComponent
public Geometry getComponent()
-
getCoordinate
public Coordinate getCoordinate()
-
getIndex
public int getIndex()
-
isVertex
public boolean isVertex()
-
isDone
public boolean isDone()
-
isGeometryChanged
public boolean isGeometryChanged()
-
-