This topic describes the ST_SRID function. This function returns the spatial reference identifier (SRID) of a geometry object. The SRID must be defined in the spatial_ref_sys table.
Syntax
integer ST_SRID(geometry g1);
Parameters
Parameter | Description |
---|---|
g1 | The geometry object that you want to specify. |
Description
The ST_SRID function supports circular strings and curves.
Examples
Obtain the SRID of a geometry object by using the default parameter settings.
SELECT ST_SRID('SRID=4326;POINT(0 0)'::geometry);
st_srid
---------
4326
(1 row)