⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 banj.frm

📁 这里包含了测量计算过程中所需要的各种小程序。
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   5220
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   9675
   LinkTopic       =   "Form1"
   ScaleHeight     =   5220
   ScaleWidth      =   9675
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text6 
      Height          =   375
      Left            =   6480
      TabIndex        =   20
      Text            =   "Text6"
      Top             =   1320
      Width           =   1815
   End
   Begin VB.TextBox Text5 
      Height          =   375
      Left            =   1800
      TabIndex        =   19
      Text            =   "Text5"
      Top             =   1320
      Width           =   1695
   End
   Begin VB.CommandButton Command2 
      Caption         =   "退出"
      Height          =   495
      Left            =   6240
      TabIndex        =   18
      Top             =   4560
      Width           =   1575
   End
   Begin VB.TextBox Text4 
      Height          =   495
      Left            =   5040
      TabIndex        =   16
      Text            =   "Text4"
      Top             =   2160
      Width           =   2055
   End
   Begin VB.Frame Frame2 
      BackColor       =   &H00FF8080&
      Caption         =   "输出点的曲率半径"
      Height          =   1455
      Left            =   0
      TabIndex        =   6
      Top             =   3000
      Width           =   9495
      Begin VB.TextBox Text3 
         Height          =   375
         Left            =   6840
         TabIndex        =   12
         Text            =   "text3"
         Top             =   720
         Width           =   1935
      End
      Begin VB.TextBox Text2 
         Height          =   375
         Left            =   3600
         TabIndex        =   11
         Text            =   "text2"
         Top             =   720
         Width           =   1695
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Left            =   480
         TabIndex        =   10
         Text            =   "text1"
         Top             =   720
         Width           =   1455
      End
      Begin VB.Label Label3 
         BackColor       =   &H00FF8080&
         Caption         =   "R="
         Height          =   375
         Left            =   6600
         TabIndex        =   15
         Top             =   840
         Width           =   255
      End
      Begin VB.Label Label2 
         BackColor       =   &H00FF8080&
         Caption         =   "N="
         Height          =   375
         Left            =   3360
         TabIndex        =   14
         Top             =   840
         Width           =   375
      End
      Begin VB.Label Label1 
         BackColor       =   &H00FF8080&
         Caption         =   "M="
         Height          =   375
         Left            =   240
         TabIndex        =   13
         Top             =   840
         Width           =   255
      End
      Begin VB.Label Label10 
         BackColor       =   &H00FF8080&
         Caption         =   "平均曲率半径"
         Height          =   495
         Left            =   6720
         TabIndex        =   9
         Top             =   480
         Width           =   2655
      End
      Begin VB.Label Label9 
         BackColor       =   &H00FF8080&
         Caption         =   "卯酉圈曲率半径"
         Height          =   375
         Left            =   3720
         TabIndex        =   8
         Top             =   480
         Width           =   2295
      End
      Begin VB.Label Label8 
         BackColor       =   &H00FF8080&
         Caption         =   "子午圈曲率半径"
         Height          =   255
         Left            =   360
         TabIndex        =   7
         Top             =   480
         Width           =   1455
      End
   End
   Begin VB.CommandButton Command1 
      Caption         =   "计算"
      Height          =   495
      Left            =   600
      TabIndex        =   5
      Top             =   4560
      Width           =   1575
   End
   Begin VB.Frame Frame1 
      BackColor       =   &H0000FF00&
      Caption         =   "请先选择参考椭球体"
      ForeColor       =   &H000000FF&
      Height          =   855
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   9495
      Begin VB.OptionButton Option3 
         Caption         =   "WGS-84椭球体"
         Height          =   255
         Left            =   6720
         TabIndex        =   3
         Top             =   360
         Width           =   1935
      End
      Begin VB.OptionButton Option2 
         Caption         =   "1975年国际椭球体"
         Height          =   255
         Left            =   3120
         TabIndex        =   2
         Top             =   360
         Width           =   1935
      End
      Begin VB.OptionButton Option1 
         Caption         =   "可拉索夫斯基椭球体"
         Height          =   255
         Left            =   240
         TabIndex        =   1
         Top             =   360
         Width           =   1935
      End
   End
   Begin VB.Label Label11 
      Caption         =   "椭球体的第二偏心率"
      Height          =   375
      Left            =   4200
      TabIndex        =   23
      Top             =   1320
      Width           =   1935
   End
   Begin VB.Label Label6 
      Caption         =   "a="
      Height          =   375
      Left            =   1560
      TabIndex        =   22
      Top             =   1440
      Width           =   375
   End
   Begin VB.Label Label5 
      Caption         =   "椭球体的长半轴"
      Height          =   495
      Left            =   240
      TabIndex        =   21
      Top             =   1440
      Width           =   1455
   End
   Begin VB.Label Label4 
      Caption         =   "B="
      Height          =   495
      Left            =   4800
      TabIndex        =   17
      Top             =   2280
      Width           =   255
   End
   Begin VB.Label Label7 
      Caption         =   "请输入所求点的大地纬度,以度、分、秒的行式,小数点前面为度有三位,后面为分和秒位,秒位保留4位小数,不足的以0不足。"
      Height          =   735
      Left            =   480
      TabIndex        =   4
      Top             =   2040
      Width           =   4215
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim a, b, c, e2, ei2, d As Integer

Private Sub Command1_Click()

Dim a, b, c, e2, ei2, d As Double
a = Text5.Text
e2 = Val(Text6.Text) * Val(Text6.Text)
Dim m, n, r, w, v, b1, b2, b3, b4, b5, b6 As Variant
b1 = Text4.Text
b2 = Mid$(b1, 1, 3)
b3 = Mid$(b1, 5, 2)
b4 = Mid$(b1, 7, 6)
b5 = Val(b2) + Val(b3) / 60 + Val(b4) / 10000 / 3600
b6 = b5 * 3.14159265358979 / 180
w = 1 - e2 * Sin(b6) * Sin(b6)
m = a * (1 - e2) / w ^ 3
n = a / w
r = Sqr(m * n)
Text1.Text = m
Text2.Text = n
Text3.Text = r
End Sub

Private Sub Command2_Click()
End

End Sub

Private Sub Form_Load()
Text4.Text = ""
End Sub

Private Sub Option1_Click()
Dim a, b, c, e2, ei2, d As Double
a = 6378245#
b = 6356863.01877305
c = 639968.901782711
d = 1 / 298.3
e2 = 0.006693421622966
ei2 = 0.006738525414683
Text5.Text = a
Text6.Text = Sqr(e2)
End Sub

Private Sub Option2_Click()
Dim a, b, c, e2, ei2, d As Double
a = 6378140#
b = 6356755.28815753
c = 6399596.65198801
d = 1 / 298.257
e2 = 0.006694384999588
ei2 = 0.006739501819473
Text5.Text = a
Text6.Text = Sqr(e2)

End Sub

Private Sub Option3_Click()
Dim a, b, c, e2, ei2, d As Double
a = 6378137#
b = 6356752.3142
c = 6399593.6258
d = 1 / 298.257223563
e2 = 0.006694379013
ei2 = 0.00673949674227
Text5.Text = a
Text6.Text = Sqr(e2)
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -