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