제목

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

This method needs SFCGAL backend.

This function supports Triangles and Triangulated Irregular Network Surfaces (TIN).

도형 예시

Code
SELECT CG_Intersects('POINT(0 0)'::geometry, 'LINESTRING ( 2 0,0 2 )'::geometry);
래스터 출력
f
Figure
Geometry figure for visual-cg-intersects-01
Code
SELECT CG_Intersects('POINT(0 0)'::geometry, 'LINESTRING ( 0 0,0 2 )'::geometry);
래스터 출력
t
Figure
Geometry figure for visual-cg-intersects-02