Name

CG_Intersection — Computes the intersection of two geometries

Synopsis

geometry CG_Intersection( geometry geomA , geometry geomB );

Beschreibung

Computes the intersection of two geometries.

Performed by the SFCGAL module

[Note]

NOTE: this function returns a geometry representing the intersection.

Verfügbarkeit: 3.5.0

Diese Methode benötigt ein SFCGAL-Backend.

Beispiele mit dem geometrischen Datentyp

SELECT ST_AsText(CG_Intersection('LINESTRING(0 0, 5 5)', 'LINESTRING(5 0, 0 5)'));
                cg_intersection
                -----------------
                POINT(2.5 2.5)
                (1 row)