摘要: 经度是分和秒是按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 阅读全文
posted @ 2013-08-01 17:03 ttssrs 阅读(1109) 评论(0) 推荐(0) 编辑