Name

~= — A의 경계 상자와 B의 경계 상자가 동일할 경우 TRUE 를 반환합니다.

Synopsis

boolean ~=( geometry A , geometry B );

설명

~= 연산자는 도형/지리형 A의 경계 상자와 도형/지리형 B의 경계 상자가 동일할 경우 TRUE 를 반환합니다.

[Note]

이 피연산자(operand)는 도형에서 이용할 수도 있는 모든 인덱스를 활용할 것입니다.

1.5.0 버전에서 습성이 변경됐습니다.

This function supports Polyhedral surfaces.

[Warning]

This operator has changed behavior in PostGIS 1.5 from testing for actual geometric equality to only checking for bounding box equality. To complicate things it also depends on if you have done a hard or soft upgrade which behavior your database has. To find out which behavior your database has you can run the query below. To check for true equality use ST_OrderingEquals or ST_Equals.

예시

select 'LINESTRING(0 0, 1 1)'::geometry ~= 'LINESTRING(0 1, 1 0)'::geometry as equality;
 equality   |
-----------------+
          t    |