ST_SetSrid

更新时间:
复制 MD 格式

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

Syntax

scene ST_SetSrid(scene sceneObject, int4 srid);

Parameters

ParameterTypeDescription
sceneObjectsceneThe scene object to update.
sridint4The SRID to assign to the scene object.

Examples

Set the SRID of a scene object

The following example creates a scene object from a glTF JSON string with SRID 4490 and reassigns it to SRID 4326 (WGS 84). ST_Srid confirms the result.

SELECT ST_Srid(
  ST_SetSrid(
    ST_sceneFromText('{"type" : "gltf", "srid" : 4490 , "content" : {"accessors":...}}'),
    4326
  )
);

Result:

---------
   4326

What's next

  • ST_Srid — Get the SRID of a scene object