Name
&& — Returns TRUE
if A's bounding box overlaps B's.
Synopsis
boolean &&(
raster
A
,
raster
B
)
;
Description
The &&
operator returns TRUE
if the bounding box of raster A overlaps the bounding box of raster B.
| |
---|
This operand will make use of any indexes that may be available on the
rasters. |
Examples
SELECT A.rid As a_rid, B.rid As b_rid, A.rast && B.rast As overlap
FROM dummy_rast AS A CROSS JOIN dummy_rast AS B LIMIT 3;
a_rid | b_rid | overlap
-------+-------+---------
2 | 2 | t
2 | 3 | f
2 | 1 | f