Package org.locationtech.jtslab
Class OverlayOptFunctions
java.lang.Object
org.locationtech.jtslab.OverlayOptFunctions
Functions to test using spatial predicates
as a filter in front of overlay operations
to optimize performance.
- Author:
- Martin Davis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Geometry
intersectionOpt
(Geometry a, Geometry b) Use spatial predicates as a filter in front of intersection.static Geometry
Use prepared geometry spatial predicates as a filter in front of intersection, with the first operand prepared.
-
Constructor Details
-
OverlayOptFunctions
public OverlayOptFunctions()
-
-
Method Details
-
intersectionOpt
Use spatial predicates as a filter in front of intersection.- Parameters:
a
- a geometryb
- a geometry- Returns:
- the intersection of the geometries
-
intersectionOptPrep
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
-