ST_ForcePolygonCCW — Orients all exterior rings counter-clockwise and all interior rings clockwise.


geometry ST_ForcePolygonCCW ( geometry geom );


Forces (Multi)Polygons to use a counter-clockwise orientation for their exterior ring, and a clockwise orientation for their interior rings. Non-polygonal geometries are returned unchanged.

2.2.0 버전부터 사용할 수 있습니다.

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

This function supports M coordinates.