ST_MAKEPOLYGON (Lakehouse v1)
Construit un objet GEOMETRY qui représente un Polygon sans trou. La fonction utilise le LineString indiqué comme boucle extérieure.
Syntaxe SQL
Section intitulée « Syntaxe SQL »ST_MAKEPOLYGON(<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 »Geometry.
Exemples SQL
Section intitulée « Exemples SQL »SELECT ST_MAKEPOLYGON( ST_GEOMETRYFROMWKT( 'LINESTRING(0.0 0.0, 1.0 0.0, 1.0 2.0, 0.0 2.0, 0.0 0.0)' ) ) AS pipeline_polygon;
┌────────────────────────────────┐│ pipeline_polygon │├────────────────────────────────┤│ POLYGON((0 0,1 0,1 2,0 2,0 0)) │└────────────────────────────────┘