Skip to content
🌵SedonaDB (Rust) 0.3.0 is out now, featuring larger-than-memory spatial joins, and row-level CRS!

ST_SetSRID

Introduction: Sets the spatial reference system identifier (SRID) of the geometry.

Format: ST_SetSRID (A: Geometry, srid: Integer)

Return type: Geometry

Since: v1.3.0

Example:

SELECT ST_AsEWKT(ST_SetSRID(ST_GeomFromWKT('POLYGON((1 1, 8 1, 8 8, 1 8, 1 1))'), 3021))

Output:

SRID=3021;POLYGON ((1 1, 8 1, 8 8, 1 8, 1 1))