ST_SceneFromBianry

更新时间:
复制 MD 格式

Converts a binary object to a scene object.

Syntax

scene ST_SceneFromBinary(byeta binary);

Parameters

ParameterDescription
binaryThe scene object in binary representation.

Usage notes

  • The binary parameter accepts the binary representation of a scene object, such as the output of ST_AsBinary.

  • Returns a scene object. Use ST_AsText to convert the result to a human-readable text representation.

Example

Convert a binary-encoded scene object back to a scene object, then render it as text:

SELECT ST_AsText(ST_sceneFromBinary(\x0128000000540a0...));

Output:

{"type" : "gltf", "content" : {"accessors":...}}

The output is a glTF scene encoded as JSON.

See also

  • ST_AsBinary — serializes a scene object to its binary representation (the inverse of ST_SceneFromBinary)

  • ST_AsText — converts a scene object to a text representation