ST_SRID (Lakehouse v1)
Returns the SRID (spatial reference system identifier) of a GEOMETRY object.
SQL Syntax
Section titled “SQL Syntax”ST_SRID(<geometry>)Arguments
Section titled “Arguments”| Arguments | Description |
|---|---|
<geometry> | The argument must be an expression of type GEOMETRY. |
Return Type
Section titled “Return Type”INT32.
SQL Examples
Section titled “SQL Examples”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 │└───────────────┘