ST_AsOSGB

Updated at:
Copy as MD

Serializes a scene object into binary OSGB format and returns it as a bytea value.

Syntax

bytea ST_AsOSGB(scene sceneObject);

Parameters

ParameterDescription
sceneObjectThe scene object to serialize. Must be of type osg.
ST_AsOSGB only accepts scene objects of type osg.

Example

The following example constructs a scene object from raw OSGB bytes using ST_sceneFromOSGB, then serializes it back to OSGB format using ST_AsOSGB.

SELECT ST_AsOSGB(ST_sceneFromOSGB('\xa10e916c4545fb1a0...'));
        st_asosgb
----------------------------
\xa10e916c4545fb1a0...

See also

  • ST_sceneFromOSGB