摘要:
经度是分和秒是按60进位,如果要做运算第一步就是转换成浮点数,之后就是计算和还原。using System.Text.RegularExpressions;public static double DegreeFromString(string str){ Match match = Regex.Match(str, @"(?[0-9]+)°(?[0-9]+)(′|')(?[0-9]+(\.[0-9]+)?)(″|""|'')"); if (match.Success) { double hour = 0, minute 阅读全文