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

📄 guassprojectionf.frm

📁 用VB编写的水准平差软件
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "Comdlg32.ocx"
Begin VB.Form GuassProjectionF 
   Caption         =   "高斯投影坐标反算"
   ClientHeight    =   6090
   ClientLeft      =   4710
   ClientTop       =   3375
   ClientWidth     =   9870
   LinkTopic       =   "Form1"
   ScaleHeight     =   6090
   ScaleWidth      =   9870
   Begin VB.TextBox Text_B 
      Height          =   375
      Left            =   1440
      TabIndex        =   11
      Top             =   2280
      Width           =   1575
   End
   Begin VB.TextBox Text_L 
      Height          =   375
      Left            =   1440
      TabIndex        =   10
      Top             =   3000
      Width           =   1575
   End
   Begin VB.TextBox Text_L0 
      Height          =   375
      Left            =   3840
      TabIndex        =   4
      Text            =   "126"
      Top             =   2400
      Width           =   1575
   End
   Begin VB.OptionButton Option1 
      Caption         =   "克拉索夫斯基椭球体"
      Height          =   495
      Left            =   1080
      TabIndex        =   1
      Top             =   1200
      Width           =   2535
   End
   Begin VB.OptionButton Option2 
      Caption         =   "1975国际椭球体"
      Height          =   495
      Left            =   3840
      TabIndex        =   2
      Top             =   1200
      Width           =   2535
   End
   Begin VB.OptionButton Option3 
      Caption         =   "WGS-84椭球体"
      Height          =   495
      Left            =   6600
      TabIndex        =   3
      Top             =   1200
      Width           =   2655
   End
   Begin VB.TextBox Text_X 
      Height          =   375
      Left            =   6240
      TabIndex        =   5
      Text            =   "4618976.1497"
      Top             =   2280
      Width           =   1575
   End
   Begin VB.TextBox Text_Y 
      Height          =   375
      Left            =   6240
      TabIndex        =   6
      Text            =   "387592.8816"
      Top             =   3000
      Width           =   1575
   End
   Begin VB.CommandButton Command1 
      Caption         =   "<<<<<<----"
      Height          =   375
      Left            =   3840
      TabIndex        =   7
      Top             =   3000
      Width           =   1575
   End
   Begin VB.Frame Frame1 
      Caption         =   "批量处理"
      Height          =   1575
      Left            =   1440
      TabIndex        =   0
      Top             =   3840
      Width           =   6735
      Begin VB.CommandButton Command2 
         Caption         =   "打开文件-->>>处理"
         Height          =   495
         Left            =   840
         TabIndex        =   9
         Top             =   480
         Width           =   1935
      End
      Begin VB.CommandButton Command3 
         Caption         =   "文件另存为"
         Height          =   495
         Left            =   3840
         TabIndex        =   8
         Top             =   480
         Width           =   1815
      End
   End
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   8640
      Top             =   240
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.Label Label1 
      Caption         =   "高斯投影坐标反算"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   24
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   975
      Left            =   3120
      TabIndex        =   17
      Top             =   240
      Width           =   4935
   End
   Begin VB.Label Label2 
      Caption         =   "B"
      Height          =   375
      Left            =   840
      TabIndex        =   16
      Top             =   2280
      Width           =   1815
   End
   Begin VB.Label Label3 
      Caption         =   "L"
      Height          =   375
      Left            =   840
      TabIndex        =   15
      Top             =   3120
      Width           =   2175
   End
   Begin VB.Label Label4 
      Caption         =   "L0"
      Height          =   375
      Left            =   4440
      TabIndex        =   14
      Top             =   1920
      Width           =   735
   End
   Begin VB.Label Label5 
      Caption         =   "x"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   8160
      TabIndex        =   13
      Top             =   2280
      Width           =   1215
   End
   Begin VB.Label Label6 
      Caption         =   "y"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   8160
      TabIndex        =   12
      Top             =   3000
      Width           =   1455
   End
   Begin VB.Menu Return 
      Caption         =   "返回主页"
   End
End
Attribute VB_Name = "GuassProjectionF"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim a As Double
Dim b_b As Double
Dim c As Double
Dim a_a As Double
Dim ee As Double
Dim e_e As Double
Const PI = 3.14159265358979
Const p = 206264.806247096
Public BBmat
Dim CCmat() As Variant
Dim dd As Double
Public Function AngleToRadian(angle As Double) As Double                '角度化弧度
Dim d As Integer
Dim f As Integer
Dim m As Double
angle = angle + 0.0000000001
d = Int(Abs(angle)) * Sgn(angle)
f = Int(Abs((angle - d) * 100)) * Sgn((angle - d) * 100)
m = ((angle - d) * 100 - f) * 100
'Print d
'Print f
'Print m
AngleToRadian = (CDbl(m) / 3600 + CDbl(f) / 60 + CDbl(d)) * PI / 180
'AngleToRadian = Sgn(angle) * AngleToRadian
'Print AngleToRadian
End Function

Public Function GetV(B As Double) As Double   '其中B为弧度V
GetV = Sqr(1 + e_e * Cos(B) * Cos(B))
'Print B
'Print e_e
'Print Sqr(1 + e_e * Cos(B) * Cos(B))
End Function

Public Function Getnn(B As Double) As Double          '其中B为弧度nnm
Getnn = e_e * Cos(B) * Cos(B)
End Function


Public Function GetN(B As Double) As Double     '其中B为弧度N
Dim V As Double
V = GetV(B)
GetN = c / V
End Function

Public Function Gett(B As Double) As Double        '其中B为弧度t
Gett = Tan(B)
End Function

Public Function RadianToAngle(radian As Double) As Double              '弧度化角度
Dim angle As Double
Dim d As Double
Dim f As Double
Dim m As Double
Do While (radian > (2 * PI))
radian = radian - 2 * PI
Loop
'Do While (radian < 0)
'radian = radian + 2 * PI
'Loop
angle = radian * 180 / PI
d = Int(Abs(angle)) * Sgn(angle)
f = Int(Abs((angle - d) * 60)) * Sgn((angle - d) * 60)
m = ((angle - d) * 60 - f) * 60
RadianToAngle = CDbl(d) + CDbl(f) / 100 + m / 10000
'RadianToAngle = Sgn(radian) * RadianToAngle
End Function

Private Sub Command1_Click()
If (e_e = 0) Then
MsgBox ("请选择椭球体的类型")
ElseIf (Text_X.Text = "") Then

⌨️ 快捷键说明

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