Skip to main content
Return the centroid point of A ST_Centroid

Signatures

ST_Centroid (A: Geometry)

Parameters

A
Geometry
required
The input geometry.

Return type

The resulting geometry.

Example

SELECT ST_Centroid(ST_GeomFromWKT('MULTIPOINT(-1  0, -1 2, 7 8, 9 8, 10 6)'))
POINT (4.8 4.8)