CG_Union

Name

CG_Union — Computes the union of two geometries

Synopsis

geometry CG_Union ( geometry geomA , geometry geomB ) ;

Description

Computes the union of two geometries.

Performed by the SFCGAL module

[Note]

NOTE: this function returns a geometry representing the union.

Availability: 3.5.0

This method needs SFCGAL backend.

Geometry Examples

Code
SELECT CG_Union('POINT(.5 0)', 'LINESTRING(-1 0,1 0)');
Output
LINESTRING(-1 0,0.5 0,1 0)