資源簡介
高斯坐標正反算,測繪小程序,本人暑期實習編寫,簡單易用

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?System.IO;
namespace?高斯坐標正算大地坐標
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????private?double?Charge(double?A)????????????????//角度轉換為有意義的弧度制
????????{
????????????double?d?=?A;
????????????double?degree?=?Convert.ToInt32(d);
????????????A?-=?degree;
????????????A?*=?100;
????????????d?=?A;
????????????double?minute?=?Convert.ToInt32(d);
????????????A?-=?minute;???????????????????????????????????
????????????minute?/=?60;
????????????A?*=?100;
????????????double?second?=?A;
????????????second?/=?3600;
????????????double?result?=?degree?+?minute?+?second;
????????????result?=?result?*?Math.PI?/?180;
????????????return?(result);
????????}
????????double?N1?N2?N3?N4?a01?a02?a03?a04?a41?a42?a43?a61?a62?a31?a32?a33?a51?a52?a53?a54?X1;
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????if?(radioButton1.Checked)
????????????{
????????????????OpenFileDialog?dialog?=?new?OpenFileDialog();
????????????????if?(dialog.ShowDialog()?==?DialogResult.OK)
????????????????{
????????????????????string?str;
????????????????????string?fn?=?dialog.FileName;
????????????????????FileStream?fs?=?new?FileStream(fn?FileMode.Open);
????????????????????StreamReader?sr?=?new?StreamReader(fs);
????????????????????StreamWriter?sw?=?new?StreamWriter(fs);
????????????????????double?L?=?double.Parse(sr.ReadLine());???????????????????//(是六度帶的)
????????????????????double?n?=?100;
????????????????????if?(radioButton3.Checked)??????????????
????????????????????{
????????????????????????n?=?Math.Floor(L?/?3);
????????????????????????if?((L?-?n?*?3)?>?1.5)?n++;
????????????????????}
????????????????????else
????????????????????{
????????????????????????n?=?Math.Floor((L?+?3)?/?6);
????????????????????????if?(((L?+?3)?/?6?-?Math.Floor((L?+?3)?/?6))?>?0.5)?n?=?Math.Floor(n)?+?1;
????????????????????}
????????????????????if?(radioButton3.Checked?==false?&&?radioButton4.Checked?==false)?
????????????????????????MessageBox?.Show?(?“分帶尚未選擇!“)?;
????????????????????L?=?Charge(L);????????????????????????????????????????????//大地經度
????????????????????double?B?=?Charge(double.Parse(sr.ReadLine()));?????????//大地緯度
????????????????????double?l?=?L?-?Charge(6?*?(n?-?1)?+?3);????????????//公式中的參數
????????????????????if?(radioButton4.Checked)
????????????????????????l?=?L?-?Charge(3*n);
????????????????????double?cos2?=?Math.Cos(B)?*?Math.Cos(B);
????????????????????double?N?a0?a4?a6?a3?a5?x?y?X?Y;
????????????????????N?=?N1?-?(N2?-?(N3?-?N4?*?cos2)?*?cos2)?*?cos2;
????????????????????a0?=?a01?-?(a02?-?(a03?-?a04?*?cos2)?*?cos2)?*?cos2;
????????????????????a4?=?(a41?+?a42?*?cos2)?*?cos2?-?a43;
???
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????22016??2016-07-20?10:53??高斯坐標正反算\高斯坐標正算大地坐標\bin\Debug\高斯坐標正算大地坐標.exe
?????文件??????38400??2016-07-20?10:53??高斯坐標正反算\高斯坐標正算大地坐標\bin\Debug\高斯坐標正算大地坐標.pdb
?????文件??????11600??2016-07-21?11:29??高斯坐標正反算\高斯坐標正算大地坐標\bin\Debug\高斯坐標正算大地坐標.vshost.exe
?????文件????????490??2015-10-30?15:19??高斯坐標正反算\高斯坐標正算大地坐標\bin\Debug\高斯坐標正算大地坐標.vshost.exe.manifest
?????文件??????11964??2016-07-20?10:53??高斯坐標正反算\高斯坐標正算大地坐標\Form1.cs
?????文件??????24595??2016-07-20?10:53??高斯坐標正反算\高斯坐標正算大地坐標\Form1.Designer.cs
?????文件???????5817??2016-07-20?10:53??高斯坐標正反算\高斯坐標正算大地坐標\Form1.resx
?????文件???????5420??2016-07-06?08:54??高斯坐標正反算\高斯坐標正算大地坐標\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件???????6417??2017-06-01?16:06??高斯坐標正反算\高斯坐標正算大地坐標\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件???????1885??2016-07-21?11:29??高斯坐標正反算\高斯坐標正算大地坐標\obj\x86\Debug\高斯坐標正算大地坐標.csproj.FileListAbsolute.txt
?????文件????????975??2016-07-20?10:53??高斯坐標正反算\高斯坐標正算大地坐標\obj\x86\Debug\高斯坐標正算大地坐標.csproj.GenerateResource.Cache
?????文件???????9214??2016-07-25?09:48??高斯坐標正反算\高斯坐標正算大地坐標\obj\x86\Debug\高斯坐標正算大地坐標.csprojResolveAssemblyReference.cache
?????文件??????22016??2016-07-20?10:53??高斯坐標正反算\高斯坐標正算大地坐標\obj\x86\Debug\高斯坐標正算大地坐標.exe
?????文件????????180??2016-07-20?10:53??高斯坐標正反算\高斯坐標正算大地坐標\obj\x86\Debug\高斯坐標正算大地坐標.Form1.resources
?????文件??????38400??2016-07-20?10:53??高斯坐標正反算\高斯坐標正算大地坐標\obj\x86\Debug\高斯坐標正算大地坐標.pdb
?????文件????????180??2016-05-15?16:07??高斯坐標正反算\高斯坐標正算大地坐標\obj\x86\Debug\高斯坐標正算大地坐標.Properties.Resources.resources
?????文件????????511??2016-05-15?15:23??高斯坐標正反算\高斯坐標正算大地坐標\Program.cs
?????文件???????1392??2016-05-15?15:23??高斯坐標正反算\高斯坐標正算大地坐標\Properties\AssemblyInfo.cs
?????文件???????2912??2016-05-15?15:23??高斯坐標正反算\高斯坐標正算大地坐標\Properties\Resources.Designer.cs
?????文件???????5612??2016-05-15?15:23??高斯坐標正反算\高斯坐標正算大地坐標\Properties\Resources.resx
?????文件???????1117??2016-05-15?15:23??高斯坐標正反算\高斯坐標正算大地坐標\Properties\Settings.Designer.cs
?????文件????????249??2016-05-15?15:23??高斯坐標正反算\高斯坐標正算大地坐標\Properties\Settings.settings
?????文件???????3719??2016-05-15?16:06??高斯坐標正反算\高斯坐標正算大地坐標\高斯坐標正算大地坐標.csproj
?????文件????????932??2016-05-15?15:23??高斯坐標正反算\高斯坐標正算大地坐標.sln
????..A..H.?????21504??2017-06-01?16:06??高斯坐標正反算\高斯坐標正算大地坐標.suo
?????目錄??????????0??2016-05-15?15:23??高斯坐標正反算\高斯坐標正算大地坐標\obj\x86\Debug\TempPE
?????目錄??????????0??2016-11-25?16:27??高斯坐標正反算\高斯坐標正算大地坐標\obj\x86\Debug
?????目錄??????????0??2016-10-30?16:01??高斯坐標正反算\高斯坐標正算大地坐標\bin\Debug
?????目錄??????????0??2016-10-30?16:01??高斯坐標正反算\高斯坐標正算大地坐標\obj\x86
?????目錄??????????0??2016-10-30?16:01??高斯坐標正反算\高斯坐標正算大地坐標\bin
............此處省略7個文件信息
評論
共有 條評論