PostGIS

ST_ForcePolygonCCW

Prev

7.5. Geometry Editors

Next

Name

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

Synopsis

+ geometry `*`+ST_ForcePolygonCCW*+ (` geometry `+geom );

Description

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.

Availability: 2.4.0

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

check This function supports M coordinates.

See Also

Prev

Up

Next

ST_Force4D

Home

ST_ForceCollection