ST_GEOMETRYFROMWKT (Lakehouse v1)
Analyse une entrée WKT (well-known text) ou EWKT (extended well-known text) et renvoie une valeur de type GEOMETRY.
Syntaxe SQL
Section intitulée « Syntaxe SQL »ST_GEOMETRYFROMWKT(<string>, [<srid>])Arguments
Section intitulée « Arguments »| Arguments | Description |
|---|---|
<string> |
L’argument doit être une expression de chaîne au format WKT ou EWKT. |
<srid> |
La valeur entière du SRID à utiliser. |
Type de retour
Section intitulée « Type de retour »Geometry.
Exemples SQL
Section intitulée « Exemples SQL »SELECT ST_GEOMETRYFROMWKT( 'POINT(1820.12 890.56)' ) AS pipeline_geometry;
┌───────────────────────┐│ pipeline_geometry │├───────────────────────┤│ POINT(1820.12 890.56) │└───────────────────────┘
SELECT ST_GEOMETRYFROMWKT( 'POINT(1820.12 890.56)', 4326 ) AS pipeline_geometry;
┌─────────────────────────────────┐│ pipeline_geometry ││ Geometry │├─────────────────────────────────┤│ SRID=4326;POINT(1820.12 890.56) │└─────────────────────────────────┘