名稱

ST_Intersects — 如果網格 rastA 在空間上與網格 rastB 相交,則返回 true。

概要

boolean ST_Intersects( 網格 rastA , 整數 nbandA , 網格 rastB , 整數 nbandB );

boolean ST_Intersects( 網格 rastA , 網格 rastB );

boolean ST_Intersects( 網格 rast , 整數 nband , 幾何圖形 geommin );

boolean ST_Intersects( 網格 rast , 幾何圖形 geommin , 整數 nband=NULL );

boolean ST_Intersects( 幾何圖形 geommin , 網格 rast , 整數 nband=NULL );

描述

如果網格 rastA 在空間上與網格 rastB 相交,則返回 true。如果未提供頻帶編號(或設定為 NULL),則在測試中僅考慮網格的凸包。如果提供了頻帶編號,則在測試中僅考慮具有值(非 NODATA)的像素。

[Note]

此函數將使用網格上可能可用的任何索引。

增強功能:2.0.0 引入了對網格/網格相交的支持。

[Warning]

已變更:2.1.0 ST_Intersects(網格, 幾何圖形) 變體的行為已變更為與 ST_Intersects(幾何圖形, 網格) 的行為相符。

範例

-- different bands of same raster
SELECT ST_Intersects(rast, 2, rast, 3) FROM dummy_rast WHERE rid = 2;

 st_intersects
---------------
 t