ST_POLYGON (Lakehouse v2)
Crée une géométrie de type polygone à partir d’une chaîne WKT.
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.st_polygon(<wkt>)Exemples Analyze
Section intitulée « Exemples Analyze »func.st_polygon('POLYGON((0 0,10 0,10 10,0 10,0 0))')
┌────────────┐│ (geometry) │└────────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »ST_POLYGON(<wkt>)Exemples SQL
Section intitulée « Exemples SQL »SELECT ST_ASTEXT(ST_POLYGON('POLYGON((0 0,10 0,10 10,0 10,0 0))'));
┌─────────────────────────────────────────┐│ POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0)) │└─────────────────────────────────────────┘