Interface UnionStrategy


public interface UnionStrategy
A strategy class that adapts UnaryUnion to different kinds of overlay algorithms.
Author:
Martin Davis
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether the union function operates using a floating (full) precision model.
    Computes the union of two geometries.
  • Method Details

    • union

      Geometry union(Geometry g0, Geometry g1)
      Computes the union of two geometries. This method may throw a TopologyException if one is encountered.
      Parameters:
      g0 - a geometry
      g1 - 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 the OverlapUnion 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