Sets the spatial reference system identifier (SRID) of a scene object.
Syntax
scene ST_SetSrid(scene sceneObject, int4 srid);Parameters
| Parameter | Description |
|---|---|
sceneObject | The scene object whose SRID to set. |
srid | The SRID to assign to the object. |
Examples
The following example sets the SRID of a glTF scene object to 4326 (WGS 84), then retrieves it with ST_Srid to confirm the result.
SELECT ST_Srid(
ST_SetSrid(
ST_sceneFromText('{"type" : "gltf", "srid" : 4490 , "content" : {"accessors":...}}'),
4326
)
);Output:
---------
4326