Fix to the calculation of linear rings over the 180 line.