ST_ForceCollection — Orients all exterior rings clockwise and all interior rings counter-clockwise.
geometry ST_ForceCollection(geometry geomA
Forces (Multi)Polygons to use a clockwise orientation for their exterior ring, and a counter-clockwise orientation for their interior rings. Non-polygonal geometries are returned unchanged.
This function supports 3d and will not drop the z-index.
This function supports M coordinates.