Name

ST_SRID — returns SRID of shape's spatial reference system or 0 for shape on plane.

Synopsis

ST_SRID ( in g any );
 

Description

Returns the SRID of a geometry.

Parameters

g

Geometry.

Return Types

Returns int.

Examples

Example 24.140. Simple Use

SQL>SPARQL
SELECT (bif:ST_SRID (?geo))
WHERE
  {
    ?m geo:geometry ?geo .
  }
LIMIT 10;
callret-0
INTEGER
_______________________________
 4326
 4326
 4326
 4326
 4326
 4326
 4326
 4326
 4326
 4326
No. of rows in result: 10

SQL>select ST_SRID( st_point (10, 30));
callret
INTEGER
_______________________________
 4326
No. of rows in result: 1