Class: GeometryCombiner

jsts.geom.util.GeometryCombiner

new GeometryCombiner(geoms)

Creates a new combiner for a collection of geometries
Parameters:
Name Type Description
geoms Array the geometries to combine.
Source:

Methods

(static) combine(geoms) → {Geometry}

Combines a collection of geometries.
Parameters:
Name Type Description
geoms ArrayList the geometries to combine.
Source:
Returns:
the combined geometry.
Type
Geometry

(static) combine2(g0, g1, g2opt) → {Geometry}

Combines two or three geometries.
Parameters:
Name Type Attributes Description
g0 Geometry a geometry to combine.
g1 Geometry a geometry to combine.
g2 Geometry <optional>
a geometry to combine.
Source:
Returns:
the combined geometry.
Type
Geometry

(static) extractFactory(geoms) → {jsts.geom.GeometryFactory}

Extracts the GeometryFactory used by the geometries in a collection
Parameters:
Name Type Description
geoms Array
Source:
Returns:
a GeometryFactory.
Type
jsts.geom.GeometryFactory

combine() → {jsts.geom.Geometry}

Computes the combination of the input geometries to produce the most appropriate Geometry or GeometryCollection
Source:
Returns:
a Geometry which is the combination of the inputs.
Type
jsts.geom.Geometry