union

fun union(geometry1: Geometry, geometry2: Geometry): Geometry

Calculates the union of the two geometries. The union combines those parts of the two geometries which overlap into a single geometry.

Returns all parts of the two input geometries combined into a single geometry. The order of the input parameters is irrelevant. If the two geometries have different dimensionality, the geometry with the higher dimensionality is returned. For example, a polygon is returned if the given geometries are Polygon and Point.

Supports true curves.

Return

The union of the two geometries.

Since

200.1.0