--- title: "CG_Orientation" draft: false hidden: true ---

Name

CG_Orientation — Determine surface orientation

Synopsis

integer CG_Orientation ( geometry geom ) ;

Description

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

Availability: 3.5.0

This method needs SFCGAL backend.

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