Name

ST_Orientation — Determine surface orientation

Synopsis

integer ST_Orientation(geometry geom);

Description

[Warning]

ST_Orientation is deprecated as of 3.5.0. Use CG_Orientation instead.

The function only applies to polygons. It returns -1 if the polygon is counterclockwise oriented and 1 if the polygon is clockwise oriented.

Availability: 2.1.0

This method needs SFCGAL backend.

This function supports 3d and will not drop the z-index.