Nazwa

&& — Zwraca TRUE jeśli dwuwymiarowe (2D) pole ograniczające obiektu A przecina dwuwymiarowe (2D) pole ograniczające obiektu B.

Streszczenie

boolean &&( geometry A , geometry B );

boolean &&( geography A , geography B );

Opis

Operator && zwraca TRUE jeśli dwuwymiarowe (2D) pole ograniczające geometrii A przecina dwuwymiarowe (2D) pole ograniczające geometrii B.

[Uwaga]

This operand will make use of any indexes that may be available on the geometries.

Ulepszenie: 2.0.0 wprowadzono wsparcie dla powierzchni wielościanowych

Dostępność: 1.5.0 wprowadzono wsparcie dla danych geograficznych.

This method supports Circular Strings and Curves.

This function supports Polyhedral surfaces.

Przykłady

Code
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;
Output
 column1 | column1 | overlaps
---------+---------+----------
       1 |       3 | t
       2 |       3 | f
(2 rows)
Figure
Geometry figure for visual-geometry-overlaps-01

Zobacz także

ST_Intersects, &>, &<|, &<, ~, @