Class SimpleGeometryTesselation

  • All Implemented Interfaces:
    GeometryTesselation


    public class SimpleGeometryTesselation
    extends Object
    implements GeometryTesselation
    A collection of Geometries. They will be inserted into a spatial index so that some tests may be performed efficiently.
    • Constructor Detail

      • SimpleGeometryTesselation

        public SimpleGeometryTesselation()
        Create an empty tesselation.
    • Method Detail

      • test

        public Set<Geometry> test(Point point)
        Description copied from interface: GeometryTesselation
        Retrieve the set of Geometries that this point is covered by.
        Specified by:
        test in interface  GeometryTesselation
        Parameters:
        point - the point to test for.
        Returns:
        the set of geometries this point is covered by.
      • testForIntersection

        public Set<Geometry> testForIntersection(Geometry geometry)
        Description copied from interface: GeometryTesselation
        Return all geometries of this tesselation that intersect the given testing geometry.
        Specified by:
        testForIntersection in interface  GeometryTesselation
        Parameters:
        geometry - the geometry to test for intersections with this tesselation.
        Returns:
        all intersecting geometries