ST_ASWKB (Lakehouse v1)
Convertit un objet GEOMETRY en sa représentation au format WKB (well-known binary).
Syntaxe SQL
Section intitulée « Syntaxe SQL »ST_ASWKB(<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 »Binary.
Exemples SQL
Section intitulée « Exemples SQL »SELECT ST_ASWKB( ST_GEOMETRYFROMWKT( 'SRID=4326;LINESTRING(400000 6000000, 401000 6010000)' ) ) AS pipeline_wkb;
┌────────────────────────────────────────────────────────────────────────────────────┐│ pipeline_wkb │├────────────────────────────────────────────────────────────────────────────────────┤│ 01020000000200000000000000006A18410000000060E3564100000000A07918410000000024ED5641 │└────────────────────────────────────────────────────────────────────────────────────┘
SELECT ST_ASBINARY( ST_GEOMETRYFROMWKT( 'SRID=4326;POINT(-122.35 37.55)' ) ) AS pipeline_wkb;
┌────────────────────────────────────────────┐│ pipeline_wkb │├────────────────────────────────────────────┤│ 01010000006666666666965EC06666666666C64240 │└────────────────────────────────────────────┘