Class OverlayOptFunctions

java.lang.Object
org.locationtech.jtslab.OverlayOptFunctions

public class OverlayOptFunctions extends Object
Functions to test using spatial predicates as a filter in front of overlay operations to optimize performance.
Author:
Martin Davis
  • Constructor Details

    • OverlayOptFunctions

      public OverlayOptFunctions()
  • Method Details

    • intersectionOpt

      public static Geometry intersectionOpt(Geometry a, Geometry b)
      Use spatial predicates as a filter in front of intersection.
      Parameters:
      a - a geometry
      b - a geometry
      Returns:
      the intersection of the geometries
    • intersectionOptPrep

      public static Geometry intersectionOptPrep(Geometry a, Geometry b)
      Use prepared geometry spatial predicates as a filter in front of intersection, with the first operand prepared.
      Parameters:
      a - a geometry to prepare
      b - a geometry
      Returns:
      the intersection of the geometries