Class OverlayNGOptFunctions
- java.lang.Object
-
- org.locationtech.jtstest.function.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 Summary
Constructors Constructor Description OverlayNGOptFunctions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Geometry
difference(Geometry a, Geometry b)
static Geometry
intersection(Geometry a, Geometry b)
static Geometry
intersectionOrigClassic(Geometry a, Geometry b)
Use spatial predicates as a filter in front of intersection.static Geometry
intersectionOrigPrep(Geometry a, Geometry b)
Use prepared geometry spatial predicates as a filter in front of intersection, with the first operand prepared.static Geometry
intersectionOrigPrepNoCache(Geometry a, Geometry b)
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.static Geometry
intersectionPrepNoCache(Geometry a, Geometry b)
static Geometry
intersectionPrepSR(Geometry a, Geometry b, double scaleFactor)
static Geometry
intersectionSR(Geometry a, Geometry b, double scaleFactor)
-
-
-
Method Detail
-
intersectionOrigClassic
public static Geometry intersectionOrigClassic(Geometry a, Geometry b)
Use spatial predicates as a filter in front of intersection.- Parameters:
a
- a geometryb
- 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 prepareb
- a geometry- Returns:
- the intersection of the geometries
-
intersectionOrigPrepNoCache
public static Geometry intersectionOrigPrepNoCache(Geometry a, Geometry b)
-
intersectionPrepSR
public static Geometry intersectionPrepSR(Geometry a, Geometry b, double scaleFactor)
-
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:
-
-