📄 form1
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "距离改化"
ClientHeight = 5910
ClientLeft = 60
ClientTop = 345
ClientWidth = 9105
LinkTopic = "Form1"
ScaleHeight = 5910
ScaleWidth = 9105
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame5
BackColor = &H000000FF&
Caption = "请先选择投影椭球"
Height = 615
Left = 0
TabIndex = 24
Top = 120
Width = 9015
Begin VB.OptionButton Option3
BackColor = &H000000FF&
Caption = "WGS-84椭球"
Height = 255
Left = 6120
TabIndex = 27
Top = 240
Width = 1815
End
Begin VB.OptionButton Option2
BackColor = &H000000FF&
Caption = "1975年椭球"
Height = 255
Left = 2400
TabIndex = 26
Top = 240
Width = 1455
End
Begin VB.OptionButton Option1
BackColor = &H000000FF&
Caption = "可氏椭球"
Height = 180
Left = 120
TabIndex = 25
Top = 240
Width = 1335
End
End
Begin VB.Frame Frame4
Caption = "方向改化输出"
Height = 1215
Left = 4680
TabIndex = 21
Top = 3000
Width = 4215
Begin VB.TextBox Text8
Height = 375
Left = 1440
TabIndex = 23
Text = "Text8"
Top = 720
Width = 2295
End
Begin VB.TextBox Text7
Height = 375
Left = 1440
TabIndex = 22
Text = "Text7"
Top = 240
Width = 2295
End
Begin VB.Label Label10
Caption = "BA="
Height = 375
Left = 1080
TabIndex = 29
Top = 840
Width = 495
End
Begin VB.Label Label9
Caption = "AB="
Height = 375
Left = 1080
TabIndex = 28
Top = 360
Width = 375
End
End
Begin VB.Frame Frame3
Caption = "中央子午线"
Height = 1575
Left = 6960
TabIndex = 18
Top = 1080
Width = 1935
Begin VB.TextBox Text6
Height = 375
Left = 480
TabIndex = 20
Text = "Text6"
Top = 840
Width = 1095
End
Begin VB.Label Label11
Caption = "L0="
Height = 495
Left = 120
TabIndex = 30
Top = 960
Width = 375
End
Begin VB.Label Label8
Caption = "所在带的中央子午线"
Height = 495
Left = 240
TabIndex = 19
Top = 240
Width = 1215
End
End
Begin VB.CommandButton Command4
Caption = "退出"
Height = 495
Left = 6720
TabIndex = 17
Top = 4920
Width = 855
End
Begin VB.CommandButton Command3
Caption = "三、四等计算"
Height = 495
Left = 4440
TabIndex = 16
Top = 4920
Width = 855
End
Begin VB.CommandButton Command2
Caption = "二等计算"
Height = 495
Left = 2400
TabIndex = 15
Top = 4920
Width = 855
End
Begin VB.CommandButton Command1
Caption = "一等计算"
Height = 495
Left = 840
TabIndex = 14
Top = 4920
Width = 855
End
Begin VB.Frame Frame2
Caption = "距离改化输出"
Height = 1095
Left = 0
TabIndex = 11
Top = 3120
Width = 4215
Begin VB.TextBox Text5
Height = 375
Left = 840
TabIndex = 13
Text = "Text5"
Top = 360
Width = 2895
End
Begin VB.Label Label7
Caption = "D="
Height = 495
Left = 600
TabIndex = 12
Top = 480
Width = 615
End
End
Begin VB.Frame Frame1
Caption = "输入改化点的坐标"
Height = 1815
Left = 0
TabIndex = 0
Top = 960
Width = 6735
Begin VB.TextBox Text4
Height = 375
Left = 4200
TabIndex = 10
Text = "Text4"
Top = 1200
Width = 2055
End
Begin VB.TextBox Text3
Height = 375
Left = 4200
TabIndex = 9
Text = "Text3"
Top = 600
Width = 2055
End
Begin VB.TextBox Text2
Height = 375
Left = 720
TabIndex = 8
Text = "Text2"
Top = 1080
Width = 1815
End
Begin VB.TextBox Text1
Height = 375
Left = 720
TabIndex = 7
Text = "Text1"
Top = 600
Width = 1815
End
Begin VB.Label Label6
Caption = "y2="
Height = 375
Left = 3720
TabIndex = 6
Top = 1320
Width = 255
End
Begin VB.Label Label5
Caption = "x2="
Height = 375
Left = 3720
TabIndex = 5
Top = 720
Width = 255
End
Begin VB.Label Label4
Caption = "y1="
Height = 375
Left = 240
TabIndex = 4
Top = 1200
Width = 375
End
Begin VB.Label Label3
Caption = "x1="
Height = 255
Left = 240
TabIndex = 3
Top = 720
Width = 255
End
Begin VB.Label Label2
Caption = "输入第二点坐标"
Height = 255
Left = 3360
TabIndex = 2
Top = 240
Width = 3135
End
Begin VB.Label Label1
Caption = "输入第一点坐标"
Height = 255
Left = 120
TabIndex = 1
Top = 240
Width = 1935
End
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim x1, y1, x2, y2, L0 As Double
Dim a, b, cc, a1, e2, ei2 As Double
Private Sub Command1_Click()
Dim f1, i, ii, aa, k, d, u, rm, bm, lm, yy, tm, yn As Double
Dim x1, x2, y1, y2, xm, ym As Double
Dim fab, fba, sab, s As Double
Dim x, y, bf, b1, z, nf, b2, b3, b4, b5, a1, a2, a3, bf1, bf2, e, f, l1, L, b, oa, ob, iia As Double
If Option1.Value = True Then
a = 6378245#
b = 6356863.01877305
cc = 63399698.9017827
e2 = 0.006693421633966
ei2 = 0.006738525414638
End If
If Option2.Value = True Then
a = 6378140
b = 6356755.28815753
cc = 6399596.65198801
e2 = 0.006694384999588
ei2 = 0.006739501819473
End If
If Option3.Value = True Then
a = 6378137#
b = 6356752.3142
cc = 6399593.6258
e2 = 0.0066943799013
ei2 = 0.00673949674227
End If
x1 = Text1.Text
y1 = Text2.Text
x2 = Text3.Text
y2 = Text4.Text
x = (Val(Text1.Text) + Val(Text3.Text)) / 2
y = (Val(Text2.Text) + Val(Text4.Text)) / 2
L0 = Val(Text6.Text)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -