CG_Intersects — Tests if two geometries intersect (they have at least one point in common)
boolean CG_Intersects(
geometry geomA , geometry geomB )
;
Returns true
if two geometries intersect. Geometries intersect if they have any point in common.
Performed by the SFCGAL module
NOTE: this is the "allowable" version that returns a boolean, not an integer. |
Availability: 3.5.0
Questo metodo richiede il backend SFCGAL.
Questa funzione supporta i Triangoli e le Triangulated Irregular Network Surfaces (TIN).
SELECT CG_Intersects('POINT(0 0)'::geometry, 'LINESTRING ( 2 0, 0 2 )'::geometry); cg_intersects --------------- f (1 row) SELECT CG_Intersects('POINT(0 0)'::geometry, 'LINESTRING ( 0 0, 0 2 )'::geometry); cg_intersects --------------- t (1 row)
CG_3DIntersects, ST_3DIntersects, ST_Intersects, ST_Disjoint