g_centroid function

Compute the centroid of a geometry