/// <summary> /// 图幅号经纬度 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void buttonTFHToLB_Click(object sender, EventArgs e) { MapScaleObject scaleObj = null; double LTL, LTB, RBL, RBB; string tfh = this.textBoxTFH.Text.Trim(); TFHHelper.GetLTRBPoints(tfh, out scaleObj, out LTL, out LTB, out RBL, out RBB); if (scaleObj != null) { MessageBox.Show(string.Format("比例尺:{0} LTL:{1} LTB:{2} RBL:{3} RBB:{4}", scaleObj.Label, LTL.ToString(), LTB.ToString(), RBL.ToString(), RBB.ToString())); } else { MessageBox.Show(string.Format("图幅号[{0}]无法解析!", tfh)); } }