ST_ForcePolygonCCW or
ST_ForcePolygonCW to the result to enforce a specific ring orientation.
These functions are not guaranteed to restore the original vertex order or
starting vertex.
SQL reference: ST_MakeValid
Signature
Parameters
ColumnOrName
required
Geometry column that contains the invalid geometry.
Optional[Union[ColumnOrName, bool]]
default:"None"
If True, preserve collapsed geometries as valid geometries
of a lower dimension. If False, convert them to empty geometries. If None,
use the default value of False.
Returns
Column
Geometry column that contains valid versions of the original geometry.

