Compute centroid locally if necessary
Merge pull request #14 from LocalData/centroid

Compute centroid locally if necessary