Getting started
Tutorials & examples
Help & reference
Return centroid of a polygon
polyg (numpy:numpy.ndarray) – of shape (num vertices, 2) or ogr.Geometry object
numpy:numpy.ndarray
out (x and y coordinate of the centroid)