def get_center(geom):
    centroid = geom.Centroid()
    return [centroid.GetY(), centroid.GetX()]
Return the center point of a geometry.
dataset/ETHPy150Open cgarrard/osgeopy-code/Chapter4/listing4_3.py/get_center