经纬度转换成为度分秒
double dd = Convert.ToDouble(txtLB.Text); double du=0, fen=0, sec=0; double du_y = 0, fen_y = 0; du =(int)dd; du_y = dd %1; fen = (int)(du_y * 60); fen_y = (du_y*60) % 1; sec = (int)(fen_y * 60); label53.Text = string.Format("{0} {1} {2}", du, fen, sec);
度分秒转化为经纬度
double[] du=new double[3]; du[0] = Convert.ToDouble(textBox39.Text); du[1] = Convert.ToDouble(textBox40.Text); du[2] = Convert.ToDouble(textBox41.Text); label54.Text= du[0] + (du[1] / 60) + (du[2] /3600)+"";