ST_Touches checks whether a raster object touches another raster object or a geometry object in the same spatial reference system.
Syntax
bool ST_Touches(raster rast1, raster rast2);
bool ST_Touches(raster rast, geometry geom);
bool ST_Touches(geometry geom, raster rast);Parameters
| Parameter | Description |
|---|---|
rast1 | Raster object 1. |
rast2 | Raster object 2. |
rast | The raster object. |
geom | The geometry object. |
Examples
Query all rows from tbl_a where the raster touches any raster in tbl_b:
SELECT a.id FROM tbl_a a, tbl_b b WHERE ST_Touches(a.rast, b.rast);
id
----
(0 rows)该文章对您有帮助吗?