public class GeometryCombiner extends Object
Geometrys to produce a
GeometryCollection of the most appropriate type. Input geometries which are already collections will have their elements extracted first. No validation of the result geometry is performed. (The only case where invalidity is possible is where
Polygonal geometries are combined and result in a self-intersection).
| Constructor and Description |
|---|
GeometryCombiner(Collection
Creates a new combiner for a collection of geometries
|
| Modifier and Type | Method and Description |
|---|---|
Geometry |
combine()
Computes the combination of the input geometries to produce the most appropriate
Geometry or
GeometryCollection
|
static Geometry |
combine(Collection
Combines a collection of geometries.
|
static Geometry |
combine(Geometry
Combines two geometries.
|
static Geometry |
combine(Geometry
Combines three geometries.
|
static GeometryFactory |
extractFactory(Collection
Extracts the GeometryFactory used by the geometries in a collection
|
public GeometryCombiner(Collectiongeoms)
geoms - the geometries to combine
public static Geometrycombine(Collection geoms)
geoms - the geometries to combine
public static Geometrycombine(Geometry g0, Geometry g1)
g0 - a geometry to combine
g1 - a geometry to combine
public static Geometrycombine(Geometry g0, Geometry g1, Geometry g2)
g0 - a geometry to combine
g1 - a geometry to combine
g2 - a geometry to combine
public static GeometryFactoryextractFactory(Collection geoms)
geoms -
public Geometrycombine()
Geometry or
GeometryCollection