Converts a scene object to a bytea binary representation.
Syntax
bytea ST_AsBinary(scene sceneObject);
bytea ST_AsBinary(scene sceneObject, cstring endian);Parameters
| Parameter | Description |
|---|---|
sceneObject | The scene object to convert. |
endian | The byte order of the output. Valid values: NDR (little-endian), XDR (big-endian). |
Examples
Return the binary representation of a scene object:
SELECT ST_AsBinary(ST_sceneFromText('{"type" : "gltf", "content" : {"accessors":...}}'));
--------------
\x01280000005...Return the binary representation using big-endian byte order:
SELECT ST_AsBinary(ST_sceneFromText('{"type" : "gltf", "content" : {"accessors":...}}'), 'XDR');
--------------
\x0000000028...该文章对您有帮助吗?