ST_SRID (Lakehouse v1)
Renvoie le SRID (identifiant du système de référence spatiale) d’un objet GEOMETRY.
Syntaxe SQL
Section intitulée « Syntaxe SQL »ST_SRID(<geometry>)Arguments
Section intitulée « Arguments »| Arguments | Description |
|---|---|
<geometry> |
L’argument doit être une expression de type GEOMETRY. |
Type de retour
Section intitulée « Type de retour »INT32.
Exemples SQL
Section intitulée « Exemples SQL »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 │└───────────────┘