Compute turn angles in mercartor projection. Implements issues #596,
#532