Class PreparedPolygonIntersects

java.lang.Object
org.locationtech.jts.geom.prep.PreparedPolygonPredicate
org.locationtech.jts.geom.prep.PreparedPolygonIntersects

class PreparedPolygonIntersects extends PreparedPolygonPredicate
Computes the intersects spatial relationship predicate for PreparedPolygons relative to all other Geometry classes. Uses short-circuit tests and indexing to improve performance.
  • Constructor Details

    • PreparedPolygonIntersects

      public PreparedPolygonIntersects(PreparedPolygon prepPoly)
      Creates an instance of this operation.
      Parameters:
      prepPoly - the PreparedPolygon to evaluate
  • Method Details

    • intersects

      public static boolean intersects(PreparedPolygon prep, Geometry geom)
      Computes the intersects predicate between a PreparedPolygon and a Geometry.
      Parameters:
      prep - the prepared polygon
      geom - a test geometry
      Returns:
      true if the polygon intersects the geometry
    • intersects

      public boolean intersects(Geometry geom)
      Tests whether this PreparedPolygon intersects a given geometry.
      Parameters:
      geom - the test geometry
      Returns:
      true if the test geometry intersects