public class UnaryUnionOp
extends java.lang.Object
GeometryCollection
s are fully supported.
The result obeys the following contract:
Polygons
s has the effect of
merging the areas (i.e. the same effect as
iteratively unioning all individual polygons together).
LineString
s has the effect of fully noding
and dissolving the input linework.
In this context "fully noded" means that there will be a node or endpoint in the output
for every endpoint or line segment crossing in the input.
"Dissolved" means that any duplicate (e.g. coincident) line segments or portions
of line segments will be reduced to a single line segment in the output.
This is consistent with the semantics of the
Geometry.union(Geometry)
operation.
If merged linework is required, the LineMerger
class can be used.
Points
s has the effect of merging
al identical points (producing a set with no duplicates).
Constructor and Description |
---|
UnaryUnionOp(java.util.Collection geoms) |
UnaryUnionOp(java.util.Collection geoms,
GeometryFactory geomFact) |
UnaryUnionOp(Geometry geom) |
public UnaryUnionOp(java.util.Collection geoms, GeometryFactory geomFact)
public UnaryUnionOp(java.util.Collection geoms)
public UnaryUnionOp(Geometry geom)
public static Geometry union(java.util.Collection geoms)
public static Geometry union(java.util.Collection geoms, GeometryFactory geomFact)
public Geometry union()