Skip to content
πŸŽ‰ SedonaDB 0.4.0 is out now! πŸ—ΊοΈ Python DataFrame API, R dplyr, Geography support & GPU-accelerated spatial joins. Read the release blog β†’

ST_Centroid

Introduction: Return the centroid point of A

ST_Centroid

Format: ST_Centroid (A:geometry)

Return type: Geometry

SQL example:

SELECT ST_Centroid(polygondf.countyshape)
FROM polygondf