Interface UnionStrategy
-
public interface UnionStrategyA 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 booleanisFloatingPrecision()Indicates whether the union function operates using a floating (full) precision model.Geometryunion(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 aTopologyExceptionif 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 theOverlapUnionperformance 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
-
-