ST_Covers
更新时间:
复制 MD 格式
Returns true if the first object completely covers the second — no point of the second object lies outside the first. Accepts two raster objects, or a raster object paired with a geometry object.
Syntax
bool ST_Covers(raster rast1, raster rast2);
bool ST_Covers(raster rast, geometry geom);
bool ST_Covers(geometry geom, raster rast);Parameters
| Parameter | Description |
|---|---|
rast1 | The first raster object. |
rast2 | The second raster object. |
rast | A raster object. |
geom | A geometry object. |
Example
The following query returns the IDs of all rows in tbl_a whose raster object covers every raster object in tbl_b.
SELECT a.id
FROM tbl_a a, tbl_b b
WHERE ST_Covers(a.rast, b.rast)该文章对您有帮助吗?