ST_Type

更新时间:
复制 MD 格式

Returns the storage type of a scene object.

Syntax

cstring ST_Type(scene sceneObject);

Parameters

ParameterDescription
sceneObjectThe scene object to inspect.

Description

ST_Type returns the storage type of the given scene object. The return value is one of:

  • gltf — the scene is stored in GL Transmission Format (glTF), the Khronos Group's standard format for 3D scenes and models.

  • osg — the scene is stored in OpenSceneGraph (OSG) format.

Examples

Return the storage type of a glTF scene object:

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

Output:

gltf