ST_ContainsProperly
更新时间:
复制 MD 格式
Identifies the spatial relationship between two raster objects or between a raster object and a geometric object to determine whether the first specified object properly contains the second.
Syntax
bool ST_ContainsProperly(raster rast1, raster rast2);
bool ST_ContainsProperly(raster rast, geometry geom);
bool ST_ContainsProperly(geometry geom, raster rast);Parameters
| Parameter | Description |
|---|---|
rast1 | The first raster object. |
rast2 | The second raster object. |
rast | A raster object. |
geom | A geometric object. |
Example
The following query returns the IDs of rows in tbl_a whose raster objects properly contain the raster objects in tbl_b.
SELECT a.id
FROM tbl_a a, tbl_b b
WHERE ST_ContainsProperly(a.rast, b.rast)该文章对您有帮助吗?