Interface UnionStrategy
-
public interface UnionStrategy
A strategy class that adapts UnaryUnion to different kinds of overlay algorithms.- Author:
- Martin Davis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isFloatingPrecision()
Indicates whether the union function operates using a floating (full) precision model.Geometry
union(Geometry g0, Geometry g1)
Computes the union of two geometries.
-
-
-
Method Detail
-
union
Geometry union(Geometry g0, Geometry g1)
Computes the union of two geometries. This method may throw aTopologyException
if one is encountered.- Parameters:
g0
- a geometryg1
- a geometry- Returns:
- the union of the inputs
-
isFloatingPrecision
boolean isFloatingPrecision()
Indicates whether the union function operates using a floating (full) precision model. If this is the case, then the unary union code can make use of theOverlapUnion
performance optimization, and perhaps other optimizations as well. Otherwise, the union result extent may not be the same as the extent of the inputs, which prevents using some optimizations.- Returns:
- true if the union function operates using floating precision
-
-