Checks whether a meshgeom object contains a scene object.
Syntax
bool ST_Contains(meshgeom geom, scene sc);Parameters
| Parameter | Type | Description |
|---|---|---|
geom | meshgeom | The meshgeom object to test as the container. |
sc | scene | The scene object to test as the contained geometry. |
Description
The function returns false in the following cases:
geomdoes not completely containsc.geomis empty.
Examples
SELECT ST_Contains(
ST_Translate(ST_Extrude('Polygon((-1 -1, 1 -1, 1 1, -1 1, -1 -1))',2), 0, 0, -1), ST_3DSphere(0.5,1));
--------
t该文章对您有帮助吗?