Class FacetLocater


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

      • parentGeom

        private Geometry parentGeom
      • locations

        private java.util.List locations
      • tolerance

        private double tolerance
    • Constructor Detail

      • FacetLocater

        public FacetLocater​(Geometry parentGeom)
    • Method Detail

      • filterVertexLocations

        public static java.util.List filterVertexLocations​(java.util.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 java.util.List getLocations​(Coordinate queryPt,
                                           double tolerance)
      • findLocations

        private void findLocations​(Geometry geom,
                                   java.util.List locations)
      • findLocations

        private void findLocations​(java.util.Stack path,
                                   Geometry geom,
                                   java.util.List locations)
      • findLocations

        private void findLocations​(java.util.Stack path,
                                   Polygon poly,
                                   java.util.List locations)
      • findLocations

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

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

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

        public static int[] toIntArray​(java.util.Vector path)