Converts a binary object to a scene object.
Syntax
scene ST_SceneFromBinary(byeta binary);Parameters
| Parameter | Description |
|---|---|
| binary | The scene object in binary representation. |
Usage notes
The
binaryparameter accepts the binary representation of a scene object, such as the output ofST_AsBinary.Returns a
sceneobject. UseST_AsTextto 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 ofST_SceneFromBinary)ST_AsText— converts a scene object to a text representation
该文章对您有帮助吗?