ST_Centroid() method

Returns the ST_Point value that is the mathematical centroid of the surface value.

Syntax

surface-expression.ST_Centroid()

Returns

ST_Point If the surface is the empty set, returns NULL. Otherwise, returns the mathematical centroid of the surface.

Examples

Standards

SQL/MM (ISO/IEC 13249-3: 2006) 8.1.4