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

📄 form3.frm

📁 54坐标系高斯正反算及换带,54坐标系高斯正反算及换带.
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Begin VB.Form Form3 
   Caption         =   "Form3"
   ClientHeight    =   3930
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   7095
   LinkTopic       =   "Form2"
   ScaleHeight     =   3930
   ScaleWidth      =   7095
   StartUpPosition =   3  '窗口缺省
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   720
      Top             =   2640
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.TextBox Text4 
      Height          =   270
      Left            =   3840
      TabIndex        =   10
      Top             =   2880
      Width           =   975
   End
   Begin VB.TextBox Text2 
      Height          =   270
      Left            =   3840
      TabIndex        =   6
      Top             =   2400
      Width           =   975
   End
   Begin VB.TextBox Text3 
      Height          =   270
      Left            =   3840
      TabIndex        =   5
      Tag             =   "3"
      Top             =   1800
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   375
      Left            =   2880
      TabIndex        =   0
      TabStop         =   0   'False
      Top             =   3360
      Width           =   1335
   End
   Begin VB.TextBox Text1 
      Height          =   270
      Left            =   3840
      TabIndex        =   4
      Tag             =   "1"
      Top             =   1200
      Width           =   975
   End
   Begin VB.Image Image1 
      Height          =   930
      Index           =   1
      Left            =   5640
      Stretch         =   -1  'True
      Top             =   120
      Width           =   975
   End
   Begin VB.Image Image1 
      Height          =   930
      Index           =   0
      Left            =   0
      Stretch         =   -1  'True
      Top             =   0
      Width           =   975
   End
   Begin VB.Label Label5 
      Caption         =   "输出结果文件名:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   1800
      TabIndex        =   9
      Top             =   2760
      Width           =   1815
   End
   Begin VB.Label Label3 
      Caption         =   " 原始数据文件名:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   1680
      TabIndex        =   1
      Top             =   2280
      Width           =   1935
   End
   Begin VB.Label Label4 
      Caption         =   "新的中央子午线经度:"
      Height          =   375
      Index           =   1
      Left            =   1680
      TabIndex        =   2
      Top             =   1680
      Width           =   1815
   End
   Begin VB.Label Label4 
      Caption         =   "Label4"
      Height          =   15
      Index           =   0
      Left            =   600
      TabIndex        =   8
      Top             =   1200
      Width           =   495
   End
   Begin VB.Label Label2 
      Caption         =   "按 TAB 键可实现输入值的转换"
      Height          =   375
      Left            =   2040
      TabIndex        =   7
      Top             =   360
      Width           =   2535
   End
   Begin VB.Label Label1 
      Caption         =   "原来中央子午线经度:"
      Height          =   375
      Left            =   1680
      TabIndex        =   3
      Top             =   1200
      Width           =   2055
   End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Command1_Click()
Dim x1 As Double, y1 As Double, x2 As Double, y2 As Double, w11 As Double, w21 As Double
Dim ss3 As String, zz(1000) As String, s As String, s1 As String, s2 As String, a As Double
Dim i As Integer, j As Integer
Dim dh(1000) As String
Dim x(1000) As Double, y(1000) As Double, xx(1000) As Double, yy(1000) As Double, z(1000) As Double
lold0 = Val(Text1.Text)
lnew0 = Val(Text3.Text)
Call deg(lold0)
lold0 = lold0 * 3.14159265 / 180#
Call deg(lnew0)
lnew0 = lnew0 * 3.14159265 / 180#
file$ = CStr(Text2.Text)
If file$ = "" Then
ss3 = "选择输入文件!"
ki = MsgBox(ss3, 0, "输入文件名")
CommonDialog1.ShowOpen
file$ = CommonDialog1.FileName
End If
On Error Resume Next
If file$ <> "" Then
Open file$ For Input As #1
i = 1
Do While EOF(1) = False
Input #1, dh(i), x(i), y(i), z(i)
i = i + 1
Loop
i = i - 1
End If
For j = 1 To i
y(j) = y(j) - 500000
Next j
For j = 1 To i
Call gaosfa(x(j), y(j), xx(j), yy(j))
Next j
Close #1
file$ = CStr(Text4.Text)
If file$ = "" Then
ss3 = "选择输出文件!"
ki = MsgBox(ss3, 0, "运行顺利")
CommonDialog1.ShowOpen
file$ = CommonDialog1.FileName
End If
Open file$ For Output As #2
For j = 1 To i
xx(j) = xx(j) * 180# / 3.14159265
yy(j) = yy(j) * 180# / 3.14159265
Call dhh(yy(j))
Call dhh(xx(j))
s1 = CStr(Left(yy(j), 12))
s2 = CStr(Left(xx(j), 12))
s = dh(j) & "," & s2 & "," & s1 & "," & CStr(z(j))
Print #2, s
Next j
Close #2
Unload Me
End Sub

Private Sub CommonDialog2_Click()

End Sub

⌨️ 快捷键说明

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