static class GeometryPointLocater.NearestSegmentLocationFilter extends java.lang.Object implements GeometryComponentFilter
Modifier and Type | Field and 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 and Description |
---|
NearestSegmentLocationFilter(Coordinate testPt,
boolean vertexOnly,
double tolerance) |
Modifier and Type | Method and 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 on
geom . |
Geometry |
getComponent() |
Coordinate |
getCoordinate() |
int |
getIndex() |
boolean |
isDone() |
boolean |
isGeometryChanged() |
boolean |
isVertex() |
private double tolerance
private Coordinate testPt
private boolean vertexOnly
private Geometry component
private int segIndex
private Coordinate nearestPt
private boolean isVertex
private LineSegment seg
public NearestSegmentLocationFilter(Coordinate testPt, boolean vertexOnly, double tolerance)
public void filter(Geometry geom)
GeometryComponentFilter
geom
.filter
in interface GeometryComponentFilter
geom
- a Geometry
to which the filter is applied.private void checkSegment(LineString lineStr, CoordinateSequence seq, int i)
private void checkVertex(LineString lineStr, CoordinateSequence seq, int i)
public Geometry getComponent()
public Coordinate getCoordinate()
public int getIndex()
public boolean isVertex()
public boolean isDone()
public boolean isGeometryChanged()