convert polygons to points (centroid)