Interface UnionStrategy
public interface UnionStrategy
A strategy class that adapts UnaryUnion to different
kinds of overlay algorithms.
- Author:
- Martin Davis
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether the union function operates using a floating (full) precision model.Computes the union of two geometries.
-
Method Details
-
union
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
-