Fix to the calculation of linear rings over the 180 line

There was an issue when trying to use a linear ring to calculate distance or area over the 180 line.  This fixes those calculations