Class OverlayNGOptFunctions


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

      • OverlayNGOptFunctions

        public OverlayNGOptFunctions()
    • Method Detail

      • intersectionOrigClassic

        public static Geometry intersectionOrigClassic​(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
      • intersectionOrigPrep

        public static Geometry intersectionOrigPrep​(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
      • intersectionPrep

        public static Geometry intersectionPrep​(Geometry a,
                                                Geometry b)
        Using auto slows things down quite a bit (due to need to scan to find scale factor), so not recommended.
        Parameters:
        a -
        b -
        Returns: