ST_GEOMETRYFROMWKB (Lakehouse v1)
Analyse une entrée WKB (well-known binary) ou EWKB (extended well-known binary) et renvoie une valeur de type GEOMETRY.
Syntaxe SQL
Section intitulée « Syntaxe SQL »ST_GEOMETRYFROMWKB(<string>, [<srid>])ST_GEOMETRYFROMWKB(<binary>, [<srid>])Arguments
Section intitulée « Arguments »| Arguments | Description |
|---|---|
<string> |
L’argument doit être une expression de chaîne en WKB ou EWKB au format hexadécimal. |
<binary> |
L’argument doit être une expression binaire au format WKB ou EWKB. |
<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_GEOMETRYFROMWKB( '0101000020797f000066666666a9cb17411f85ebc19e325641' ) AS pipeline_geometry;
┌────────────────────────────────────────┐│ pipeline_geometry │├────────────────────────────────────────┤│ SRID=32633;POINT(389866.35 5819003.03) │└────────────────────────────────────────┘
SELECT ST_GEOMETRYFROMWKB( FROM_HEX('0101000020797f000066666666a9cb17411f85ebc19e325641'), 4326 ) AS pipeline_geometry;
┌───────────────────────────────────────┐│ pipeline_geometry │├───────────────────────────────────────┤│ SRID=4326;POINT(389866.35 5819003.03) │└───────────────────────────────────────┘