📄 gaosiz~1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 5190
ClientLeft = 60
ClientTop = 345
ClientWidth = 10845
LinkTopic = "Form1"
ScaleHeight = 5190
ScaleWidth = 10845
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command3
Caption = "1975正算"
Height = 375
Left = 240
TabIndex = 25
Top = 2640
Width = 855
End
Begin VB.CommandButton Command2
Caption = "克拉索夫椭球正算"
Height = 375
Left = 2520
TabIndex = 17
Top = 2640
Width = 855
End
Begin VB.Frame Frame4
Caption = "坐标输出"
Height = 975
Left = 120
TabIndex = 12
Top = 3000
Width = 4455
Begin VB.TextBox Text6
Height = 375
Left = 360
TabIndex = 15
Text = "Text6"
Top = 360
Width = 1695
End
Begin VB.TextBox Text5
Height = 375
Left = 2880
TabIndex = 13
Text = "Text5"
Top = 360
Width = 1335
End
Begin VB.Label Label6
AutoSize = -1 'True
Caption = "Y"
Height = 180
Left = 240
TabIndex = 16
Top = 480
Width = 90
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "X"
Height = 180
Left = 2640
TabIndex = 14
Top = 480
Width = 90
End
End
Begin VB.CommandButton Command1
Caption = "退出"
Height = 375
Left = 1320
TabIndex = 11
Top = 2640
Width = 855
End
Begin VB.Frame Frame1
Caption = "输入大地坐标"
Height = 1815
Left = 0
TabIndex = 0
Top = 720
Width = 10455
Begin VB.Frame Frame5
Caption = "L0"
Height = 1095
Left = 7800
TabIndex = 18
Top = 360
Width = 1695
Begin VB.TextBox Text7
Height = 375
Left = 120
TabIndex = 19
Text = "Text7"
Top = 480
Width = 975
End
Begin VB.Label Label7
AutoSize = -1 'True
Caption = "度"
Height = 180
Left = 120
TabIndex = 20
Top = 240
Width = 180
End
End
Begin VB.Frame Frame3
Caption = "B(大地纬度)"
Height = 1215
Left = 3840
TabIndex = 6
Top = 360
Width = 3375
Begin VB.TextBox Text9
Height = 375
Left = 2280
TabIndex = 23
Text = "Text9"
Top = 600
Width = 855
End
Begin VB.TextBox Text4
Height = 375
Left = 1320
TabIndex = 8
Text = "Text4"
Top = 600
Width = 855
End
Begin VB.TextBox Text3
Height = 375
Left = 240
TabIndex = 7
Text = "Text3"
Top = 600
Width = 855
End
Begin VB.Label Label9
AutoSize = -1 'True
Caption = "秒"
Height = 180
Left = 2280
TabIndex = 24
Top = 360
Width = 180
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "分"
Height = 180
Left = 1320
TabIndex = 10
Top = 360
Width = 180
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "度"
Height = 180
Left = 240
TabIndex = 9
Top = 360
Width = 180
End
End
Begin VB.Frame Frame2
Caption = "L(大地经度)"
Height = 1215
Left = 120
TabIndex = 1
Top = 360
Width = 3255
Begin VB.TextBox Text8
Height = 375
Left = 2160
TabIndex = 21
Text = "Text8"
Top = 600
Width = 855
End
Begin VB.TextBox Text2
Height = 375
Left = 1200
TabIndex = 3
Text = "Text2"
Top = 600
Width = 855
End
Begin VB.TextBox Text1
Height = 375
Left = 120
TabIndex = 2
Text = "Text1"
Top = 600
Width = 975
End
Begin VB.Label Label8
AutoSize = -1 'True
Caption = "秒"
Height = 180
Left = 2280
TabIndex = 22
Top = 360
Width = 180
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "分"
Height = 180
Left = 1200
TabIndex = 5
Top = 360
Width = 180
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "度"
Height = 180
Left = 240
TabIndex = 4
Top = 360
Width = 180
End
End
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim x, y As Integer
Private Sub Command1_Click()
End
End Sub
Private Sub Command2_Click()
Dim L, N, a0, a1, a2, a3, a4, a5, b, d, c, x, y As Double
L = ((Val(Text1.Text) + Val(Text2.Text) / 60 + Val(Text8.Text) / 3600) - Val(Text7.Text)) * 3600 / 206264.806247096
Debug.Print L
b = (Val(Text3.Text) + Val(Text4.Text) / 60 + Val(Text9.Text) / 3600) * 3.14159265358979 / 180
d = (Val(Text3.Text) + Val(Text4.Text) / 60) * 3600 + Val(Text9.Text)
c = Cos(b) * Cos(b)
N = 6399698.902 - (21562.267 - (108.973 - 0.612 * c) * c) * c
a0 = 32140.404 - (135.3302 - (0.7092 - 0.004 * c) * c) * c
a4 = (0.25 + 0.00252 * c) * c - 0.04166
a6 = (0.166 * c - 0.084) * c
a3 = (0.3333333 + 0.001123 * c) * c - 0.1666667
a5 = 0.0083 - (0.1667 - (0.1968 + 0.004 * c) * c) * c
x = 6367558.4969 * d / 206264.806247096 - (a0 - (0.5 + (a4 + a6 * L * L) * L * L) * L * L * N) * Sin(b) * Cos(b)
y = (1 + (a3 + a5 * L * L) * L * L) * L * N * Cos(b)
Debug.Print x
Debug.Print x
Text5.Text = x
Text6.Text = y
End Sub
Private Sub Command3_Click()
Dim L, N, a0, a1, a2, a3, a4, a5, b, d, c, x, y As Double
L = ((Val(Text1.Text) + Val(Text2.Text) / 60 + Val(Text8.Text) / 3600) - Val(Text7.Text)) * 3600 / 206264.806247096
b = (Val(Text3.Text) + Val(Text4.Text) / 60 + Val(Text9.Text) / 3600) * 3.14159265358979 / 180
d = (Val(Text3.Text) + Val(Text4.Text) / 60) * 3600 + Val(Text9.Text)
c = Cos(b) * Cos(b)
N = 6399596.652 - (21565.045 - (108.996 - 0.603 * c) * c) * c
a0 = 32144.5189 - (135.3646 - (0.7034 - 0.0041 * c) * c) * c
a4 = (0.25 + 0.00253 * c) * c - 0.04167
a6 = (0.167 * c - 0.083) * c
a3 = (0.3333333 + 0.001123 * c) * c - 0.1666667
a5 = 0.00878 - (0.1702 - 0.20382 * c) * c
x = 6367452.1328 * d / 206264.806247096 - (a0 - (0.5 + (a4 + a6 * L * L) * L * L) * L * L * N) * Cos(b) * Sin(b)
y = (1 + (a3 + a5 * L * L) * L * L) * L * N * Cos(b)
Debug.Print x
Debug.Print x
Text5.Text = x
Text6.Text = y
End Sub
Private Sub Form_Load()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
End Sub
Private Sub Option2_Click()
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -