# Center/centriod of polygon

• Feb 11th 2009, 01:25 AM
SepticInsect
Center/centriod of polygon
Hello,
I wan't to find the center/centroid of a polygon consisting of latitude and longitude coordinates. The calculation has to work all over the globe.

Thanks!
• Feb 11th 2009, 06:46 AM
HallsofIvy
The "centroid" of a triangle is the average of the three vertices but there is no simple formula for a polygon. About the best you can do is divide the polygon into triangles and find the centroid of each triangle but then you have to take the weighted average of all of those weighted by the area of each triangle.
• Feb 11th 2009, 04:28 PM
aidan
If you are using two latitudes and two longitudes for the boundary of your polygon, then the centroid will fall on the average between the two end longitudes.

However, the centroid latitude will require a few more calculations.
The length of the latitude arc, changes continously with change in
latitude.

Since, the shape of the polgon is not defined, a solution probably would not be the one you seek.
• Feb 11th 2009, 09:50 PM
SepticInsect
Quote:

Originally Posted by aidan
Since, the shape of the polgon is not defined, a solution probably would not be the one you seek.

What do you mean?