Class OverlayNGOptFunctions
java.lang.Object
org.locationtech.jtstest.function.OverlayNGOptFunctions
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
difference
(Geometry a, Geometry b) static Geometry
intersection
(Geometry a, Geometry b) static Geometry
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.static Geometry
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
static Geometry
intersectionPrepSR
(Geometry a, Geometry b, double scaleFactor) static Geometry
intersectionSR
(Geometry a, Geometry b, double scaleFactor)
-
Constructor Details
-
OverlayNGOptFunctions
public OverlayNGOptFunctions()
-
-
Method Details
-
intersectionOrigClassic
Use spatial predicates as a filter in front of intersection.- Parameters:
a
- a geometryb
- a geometry- Returns:
- the intersection of the geometries
-
intersectionOrigPrep
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
-
intersectionSR
-
intersectionPrepSR
-
difference
-
intersection
-
intersectionPrep
Using auto slows things down quite a bit (due to need to scan to find scale factor), so not recommended.- Parameters:
a
-b
-- Returns:
-
intersectionPrepNoCache
-