All Products
Search
Document Center

PolarDB:ST_SceneFromOSGB

Last Updated:Sep 24, 2026

Constructs a scene object from an OSG binary object (OSGB format).

Syntax

scene ST_SceneFromOSGB(bytea osgb,
                       integer srid default 0,
                       integer lod default 0);

scene ST_SceneFromOSGB(bytea osgb,
                       integer srid,
                       integer lod,
                       float8[] affine);

Parameters

ParameterTypeDescription
osgbbyteaThe OSG object in binary representation.
sridintegerThe spatial reference identifier (SRID). Default value: 0.
lodintegerThe LOD level. Default value: 0.
affinefloat8[]An array of affine transformations. The number of fields in the affine parameter must be 12 or 16. If the affine parameter contains 16 fields, the last four fields are ignored.

Examples

The following example retrieves the 3D bounding box of a scene object constructed from an OSGB binary:

SELECT Box3D(ST_sceneFromOSGB('\xa10e916c4545fb1a0...'));

Output:

                box3d
--------------------------------------------
 BOX3D(-156.239562988281 63.6093330383301 -32.4500007629395,-53.4085960388184 166.440292358398 29.9221706390381)