All Products
Search
Document Center

PolarDB:ST_SetSrid

Last Updated:Mar 28, 2026

Sets the spatial reference system identifier (SRID) of a scene object.

Syntax

scene ST_SetSrid(scene sceneObject, int4 srid);

Parameters

ParameterDescription
sceneObjectThe scene object whose SRID to set.
sridThe 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