POINT centroid with the same native logical type and descriptor as the input. A centroid is a weighted geometric center and is not necessarily inside a polygon.
Syntax
MULTI* values and GEOMETRYCOLLECTION values. Polygon holes subtract their area and moment.
GEOGRAPHY computes the centroid on the unit sphere and returns longitude/latitude in OGC:CRS84 order. GEOMETRY uses planar coordinates. The result preserves the input CRS and logical kind; no reprojection occurs.
NULL produces NULL; an EMPTY value produces POINT EMPTY. A zero resultant spherical vector, or an input with no non-empty component, produces POINT EMPTY. Malformed WKB, unsupported dimensions or descriptors, and topologically invalid inputs produce a controlled error.