ST_ASEWKT (Lakehouse v1)
Convertit un objet GEOMETRY en sa représentation au format EWKT (extended well-known text).
Syntaxe SQL
Section intitulée « Syntaxe SQL »ST_ASEWKT(<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 »String.
Exemples SQL
Section intitulée « Exemples SQL »SELECT ST_ASEWKT( ST_GEOMETRYFROMWKT( 'SRID=4326;LINESTRING(400000 6000000, 401000 6010000)' ) ) AS pipeline_ewkt;
┌─────────────────────────────────────────────────────┐│ pipeline_ewkt │├─────────────────────────────────────────────────────┤│ SRID=4326;LINESTRING(400000 6000000,401000 6010000) │└─────────────────────────────────────────────────────┘
SELECT ST_ASEWKT( ST_GEOMETRYFROMWKT( 'SRID=4326;POINT(-122.35 37.55)' ) ) AS pipeline_ewkt;
┌────────────────────────────────┐│ pipeline_ewkt │├────────────────────────────────┤│ SRID=4326;POINT(-122.35 37.55) │└────────────────────────────────┘