ST_POLYGON

functionsupportedCore SQL functions

docs.snowflake.com ↗

Geospatial functions

Constructs a GEOGRAPHY or GEOMETRY object that represents a Polygon without holes. The function uses the specified LineString as the outer loop. This function corrects the orientation of the loop to prevent the creation of Polygons that span more than half of the globe. In contrast, ST_MAKEPOLYGONORIENTED doesn’t attempt to correct the orientation of the loop.

Syntax

ST_MAKEPOLYGON( <geography_or_geometry_expression> )

Parameters

NameRequiredDescription
geography_or_geometry_expressionrequiredA GEOGRAPHY or GEOMETRY object that represents a LineString in which the last point is the same as the first (i.e. a loop).

Returns

The function returns a value of type GEOGRAPHY or GEOMETRY.

Usage notes

See also