Class UnaryUnionNG


  • public class UnaryUnionNG
    extends java.lang.Object
    Unions a collection of geometries in an efficient way, using OverlayNG to ensure robust computation.

    This class is most useful for performing UnaryUnion using  a fixed-precision model.  For unary union using floating precision,   should be used.

    Author:
    Martin Davis
    See Also:
    OverlayNGRobust
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Geometry union​(Geometry geom, PrecisionModel pm)
      Unions a collection of geometries using a given precision model.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • union

        public static Geometry union​(Geometry geom,
                                     PrecisionModel pm)
        Unions a collection of geometries using a given precision model.
        Parameters:
        geom - the geometry to union
        pm - the precision model to use
        Returns:
        the union of the geometries