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 Geometrycomponentprivate booleanisVertexprivate CoordinatenearestPtprivate LineSegmentsegprivate intsegIndexprivate CoordinatetestPtprivate doubletoleranceprivate booleanvertexOnly
-
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 voidcheckSegment(LineString lineStr, CoordinateSequence seq, int i)private voidcheckVertex(LineString lineStr, CoordinateSequence seq, int i)voidfilter(Geometry geom)Performs an operation with or ongeom.GeometrygetComponent()CoordinategetCoordinate()intgetIndex()booleanisDone()booleanisGeometryChanged()booleanisVertex()
-
-
-
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:GeometryComponentFilterPerforms an operation with or ongeom.- Specified by:
filterin interfaceGeometryComponentFilter- Parameters:
geom- aGeometryto 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()
-
-