Sets the spatial reference system identifier (SRID) of a scene object.
Syntax
scene ST_SetSrid(scene sceneObject, int4 srid);Parameters
| Parameter | Type | Description |
|---|---|---|
sceneObject | scene | The scene object to update. |
srid | int4 | The 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:
---------
4326What's next
ST_Srid — Get the SRID of a scene object
该文章对您有帮助吗?