Package org.locationtech.jtslab
Class OverlayOptFunctions
- java.lang.Object
-
- org.locationtech.jtslab.OverlayOptFunctions
-
public class OverlayOptFunctions extends java.lang.ObjectFunctions to test using spatial predicates as a filter in front of overlay operations to optimize performance.- Author:
- Martin Davis
-
-
Constructor Summary
Constructors Constructor Description OverlayOptFunctions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.locationtech.jts.geom.GeometryintersectionOpt(org.locationtech.jts.geom.Geometry a, org.locationtech.jts.geom.Geometry b)Use spatial predicates as a filter in front of intersection.static org.locationtech.jts.geom.GeometryintersectionOptPrep(org.locationtech.jts.geom.Geometry a, org.locationtech.jts.geom.Geometry b)Use prepared geometry spatial predicates as a filter in front of intersection, with the first operand prepared.
-
-
-
Method Detail
-
intersectionOpt
public static org.locationtech.jts.geom.Geometry intersectionOpt(org.locationtech.jts.geom.Geometry a, org.locationtech.jts.geom.Geometry b)Use spatial predicates as a filter in front of intersection.- Parameters:
a- a geometryb- a geometry- Returns:
- the intersection of the geometries
-
intersectionOptPrep
public static org.locationtech.jts.geom.Geometry intersectionOptPrep(org.locationtech.jts.geom.Geometry a, org.locationtech.jts.geom.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
-
-