Function centroid
Source pub fn centroid(geometry: &Geometry) -> Result<Point>
Expand description
Computes the centroid of any geometry type
§Arguments
geometry - Input geometry
§Returns
Point representing the centroid
§Errors
Returns error if geometry is empty or invalid