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 Details

    • 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 Details

    • NearestSegmentLocationFilter

      public NearestSegmentLocationFilter(Coordinate testPt, boolean vertexOnly, double tolerance)
  • Method Details

    • filter

      public void filter(Geometry geom)
      Description copied from interface: GeometryComponentFilter
      Performs an operation with or on geom.
      Specified by:
      filter in interface GeometryComponentFilter
      Parameters:
      geom - a Geometry 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()