Class UnaryUnionNG
- java.lang.Object
-
- org.locationtech.jts.operation.overlayng.UnaryUnionNG
-
public class UnaryUnionNG extends java.lang.ObjectUnions a geometry or collection of geometries in an efficient way, usingOverlayNGto ensure robust computation.This class is most useful for performing UnaryUnion using a fixed-precision model. For unary union using floating precision,
OverlayNGRobust.union(Geometry)should be used.- Author:
- Martin Davis
- See Also:
OverlayNGRobust
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Geometryunion(java.util.Collection<Geometry> geoms, GeometryFactory geomFact, PrecisionModel pm)Unions a collection of geometries using a given precision model.static Geometryunion(java.util.Collection<Geometry> geoms, PrecisionModel pm)Unions a collection of geometries using a given precision model.static Geometryunion(Geometry geom, PrecisionModel pm)Unions a geometry (which is often a collection) using a given precision model.
-
-
-
Method Detail
-
union
public static Geometry union(Geometry geom, PrecisionModel pm)
Unions a geometry (which is often a collection) using a given precision model.- Parameters:
geom- the geometry to unionpm- the precision model to use- Returns:
- the union of the geometry
-
union
public static Geometry union(java.util.Collection<Geometry> geoms, PrecisionModel pm)
Unions a collection of geometries using a given precision model.- Parameters:
geoms- the collection of geometries to unionpm- the precision model to use- Returns:
- the union of the geometries
-
union
public static Geometry union(java.util.Collection<Geometry> geoms, GeometryFactory geomFact, PrecisionModel pm)
Unions a collection of geometries using a given precision model.- Parameters:
geoms- the collection of geometries to uniongeomFact- the geometry factory to usepm- the precision model to use- Returns:
- the union of the geometries
-
-