Skip to content

Returns the SRID (spatial reference system identifier) of a GEOMETRY object.

ST_SRID(<geometry>)
ArgumentsDescription
<geometry>The argument must be an expression of type GEOMETRY.

INT32.

SELECT
ST_SRID(
TO_GEOMETRY(
'POINT(-122.306100 37.554162)',
1234
)
) AS pipeline_srid;
┌───────────────┐
│ pipeline_srid │
├───────────────┤
1234
└───────────────┘
SELECT
ST_SRID(
ST_MAKEGEOMPOINT(
37.5, 45.5
)
) AS pipeline_srid;
┌───────────────┐
│ pipeline_srid │
├───────────────┤
4326
└───────────────┘