wradlib.georef.vector.get_centroid

wradlib.georef.vector.get_centroid(polyg)

Return centroid of a polygon

Parameters:

polyg (numpy.ndarray) – of shape (num vertices, 2) or ogr.Geometry object

Returns:

out (tuple) – x and y coordinate of the centroid