ST_MAKEPOLYGONORIENTED

functionsupportedCore SQL functions

docs.snowflake.com ↗

Geospatial functions

Constructs a GEOGRAPHY object that represents a Polygon without holes. The function uses the specified LineString as the outer loop. This function does not attempt to correct the orientation of the loop, thus allowing for the creation of Polygons that span more than half of the globe. In contrast, ST_MAKEPOLYGON inverts the orientation of those large shapes.

Syntax

ST_MAKEPOLYGONORIENTED( <geography_expression> )

Parameters

NameRequiredDescription
geography_expressionrequiredA GEOGRAPHY 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.

Usage notes

See also

Referenced by