ST_LOD

更新时间:
复制 MD 格式

Returns the level of detail (LOD) of a scene object.

Syntax

int4 ST_LOD(scene sceneObject);

Parameters

ParameterTypeDescription
sceneObjectsceneThe scene object to query. Construct this value using ST_sceneFromText.

Description

ST_LOD returns the LOD of an object.

Examples

The following examples use ST_sceneFromText to construct a scene object inline and pass it to ST_LOD.

Return the LOD of a glTF scene object with lod set to 1:

SELECT ST_LOD(ST_sceneFromText('{"type": "gltf", "lod": 1, "content": {"accessors": ...}}'));

Result:

 st_lod
--------
      1