calcCentroid function

Calculate the Centroids of Polygons