centroid

fun centroid(geometry: Geometry): Point

Computes the centroid as the mean of all vertices within the object.

Return

Point the centroid of the input object

Parameters

geometry

Geometry to be centered