Class FacetLocater

java.lang.Object
org.locationtech.jtstest.testbuilder.geom.FacetLocater

public class FacetLocater extends Object
Locates the paths to facets (vertices and segments) of a Geometry which are within a given tolerance of a query point.
  • Field Details

    • parentGeom

      private Geometry parentGeom
    • locations

      private List locations
    • queryPt

      private Coordinate queryPt
    • tolerance

      private double tolerance
  • Constructor Details

    • FacetLocater

      public FacetLocater(Geometry parentGeom)
  • Method Details

    • filterVertexLocations

      public static List filterVertexLocations(Collection locations)
      Creates a list containing all the vertex GeometryLocations in the input collection.
      Parameters:
      locations - the source collection
      Returns:
      a list of the vertex locations, if any
    • getLocations

      public List getLocations(Coordinate queryPt, double tolerance)
    • findLocations

      private void findLocations(Geometry geom, List locations)
    • findLocations

      private void findLocations(Stack path, Geometry geom, List locations)
    • findLocations

      private void findLocations(Stack path, Polygon poly, List locations)
    • findLocations

      private void findLocations(Stack path, Geometry compGeom, CoordinateSequence seq, List locations)
    • findVertexLocations

      private void findVertexLocations(Stack path, Geometry compGeom, CoordinateSequence seq, List locations)
    • findSegmentLocations

      private void findSegmentLocations(Stack path, Geometry compGeom, CoordinateSequence seq, List locations)
    • toIntArray

      public static int[] toIntArray(Vector path)