2
votes
2answers
863 views

Formula to get polygon centroid

I need to compute the centroid position of an irregular polygon with lat and lon coordinates in Java. Which formula should I use to correctly compute a centroid?