ST_Contains

更新时间:
复制 MD 格式

Checks whether a meshgeom object contains a scene object.

Syntax

bool ST_Contains(meshgeom geom, scene sc);

Parameters

ParameterTypeDescription
geommeshgeomThe meshgeom object to test as the container.
scsceneThe scene object to test as the contained geometry.

Description

The function returns false in the following cases:

  • geom does not completely contain sc.

  • geom is 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