Name

ST_SRID — Returns the Spatial Reference System ID for a geometric object

Synopsis

integer ST_SRID(bytea Geometry);

Alias

SRID

Description

Returns the Spatial Reference System ID for a geometric object.

Coordinate Dimensions
2D3DM
Spatial Standards Support
OGC SFS for SQL. 1.1 (1999)OGC SFS for SQL. 1.1.0 (2005)OGC SFS for SQL. 1.2.0 (2006))SQL-MM Part 3
2.1.1.17.2.10.17.2.8.25.1.5 - 10.1.5

Examples

SELECT ST_SRID(ST_GeomFromText('POINT(0 0)',25830));
--Result
25830

SELECT ST_SRID(ST_GeomFromText('POINT(0 0)'));
--Result
-1

Related functions

ST_SetSRID,ST_Transform