getCentroid-methods function

Extract Centroids