&& — A의 2D 경계 상자와 B의 2D 경계 상자가 교차하는 경우 TRUE 를 반환합니다.
boolean &&( geometry A , geometry B );
boolean &&( geography A , geography B );
&& 연산자는 도형 A의 2D 경계 상자와 도형 B의 2D 경계 상자가 교차하는 경우 TRUE 를 반환합니다.
![]() | |
이 피연산자(operand)는 도형에서 이용할 수도 있는 모든 인덱스를 활용할 것입니다. |
개선 사항: 2.0.0 버전부터 다면체 표면(polyhedral surface)을 지원합니다.
1.5.0 버전부터 지리형을 지원합니다.
This method supports Circular Strings and Curves.
This function supports Polyhedral surfaces.
SELECT tbl1.column1, tbl2.column1, tbl1.column2 && tbl2.column2 AS overlaps
FROM ( VALUES
(1, 'LINESTRING(0 0, 3 3)'::geometry),
(2, 'LINESTRING(0 1, 0 5)'::geometry)) AS tbl1,
( VALUES
(3, 'LINESTRING(1 2, 4 6)'::geometry)) AS tbl2;
column1 | column1 | overlaps
---------+---------+----------
1 | 3 | t
2 | 3 | f
(2 rows)