The Util class has now methods for calculating the area of spherical polygons that is also aware of the winding direction of the polygon edges (clockwise or counter-clockwise). These may also help with the coastlines because their winding direction determines which side is land and which is water.