资源简介
程序主要是对GPS坐标及高程的中误差的计算,能够快速计算X,Y,h的中误差。

代码片段和文件信息
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;
namespace GPS计算公式
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender EventArgs e)
{
double x1 x2 x3 x4 x5 x6 y1 y2 y3 y4 y5 y6 h1 h2 h3 h4 h5 h6;
double sumx = 0;
double sumy = 0;
double sumh = 0;
double avgx = 0;
double avgy = 0;
double avgh = 0;
double zwcx zwcy zwch;
x1 = Convert.ToDouble(textBox1.Text);
x2 = Convert.ToDouble(textBox3.Text);
x3 = Convert.ToDouble(textBox5.Text);
x4 = Convert.ToDouble(textBox7.Text);
x5 = Convert.ToDouble(textBox9.Text);
x6 = Convert.ToDouble(textBox11.Text);
y1 = Convert.ToDouble(textBox2.Text);
y2 = Convert.ToDouble(textBox4.Text);
y3 = Convert.ToDouble(textBox6.Text);
y4 = Convert.ToDouble(textBox8.Text);
y5 = Convert.ToDouble(textBox10.Text);
y6 = Convert.ToDouble(textBox12.Text);
h1 = Convert.ToDouble(textBox13.Text);
h2 = Convert.ToDouble(textBox14.Text);
h3 = Convert.ToDouble(textBox15.Text);
h4 = Convert.ToDouble(textBox16.Text);
h5 = Convert.ToDouble(textBox17.Text);
h6 = Convert.ToDouble(textBox18.Text);
sumx = x1 + x2 + x3 + x4 + x5 + x6;
sumy = y1 + y2 + y3 + y4 + y5 + y6;
sumh = h1 + h2 + h3 + h4 + h5 + h6;
avgx = sumx / 6;
avgy = sumy / 6;
avgh = sumh / 6;
zwcx = Math.Sqrt(Math.Pow(x1 - avgx 2) + Math.Pow(x2 - avgx 2) + Math.Pow(x3 - avgx 2) + Math.Pow(x4 - avgx 2) + Math.Pow(x5 - avgx 2) + Math.Pow(x6 - avgx 2)) / 5;
zwcy = Math.Sqrt(Math.Pow(y1 - avgy 2) + Math.Pow(y2 - avgy 2) + Math.Pow(y3 - avgy 2) + Math.Pow(y4 - avgy 2) + Math.Pow(y5 - avgy 2) + Math.Pow(y6 - avgy 2)) / 5;
zwch = Math.Sqrt(Math.Pow(h1 - avgh 2) + Math.Pow(h2 - avgh 2) + Math.Pow(h3 - avgh 2) + Math.Pow(h4 - avgh 2) + Math.Pow(h5 - avgh 2) + Math.Pow(h6 - avgh 2)) / 5;
textBox19.Text = Convert.ToString(zwcx);
textBox20.Text = Convert.ToString(zwcy);
textBox21.Text = Convert.ToString(zwch);
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-05-30 15:36 GPS计算公式\
目录 0 2016-05-30 15:36 GPS计算公式\GPS计算公式\
文件 887 2016-05-30 15:36 GPS计算公式\GPS计算公式.sln
文件 20480 2016-05-30 20:07 GPS计算公式\GPS计算公式.suo
目录 0 2016-05-30 15:36 GPS计算公式\GPS计算公式\bin\
目录 0 2016-05-30 19:59 GPS计算公式\GPS计算公式\bin\Debug\
文件 16896 2016-05-30 19:59 GPS计算公式\GPS计算公式\bin\Debug\GPS计算公式.exe
文件 26112 2016-05-30 19:59 GPS计算公式\GPS计算公式\bin\Debug\GPS计算公式.pdb
文件 11600 2016-05-30 20:07 GPS计算公式\GPS计算公式\bin\Debug\GPS计算公式.vshost.exe
文件 490 2015-10-30 15:19 GPS计算公式\GPS计算公式\bin\Debug\GPS计算公式.vshost.exe.manifest
文件 2659 2016-05-30 20:07 GPS计算公式\GPS计算公式\Form1.cs
文件 25827 2016-05-30 20:07 GPS计算公式\GPS计算公式\Form1.Designer.cs
文件 5817 2016-05-30 20:07 GPS计算公式\GPS计算公式\Form1.resx
文件 3689 2016-05-30 19:59 GPS计算公式\GPS计算公式\GPS计算公式.csproj
目录 0 2016-05-30 15:36 GPS计算公式\GPS计算公式\obj\
目录 0 2016-05-30 15:36 GPS计算公式\GPS计算公式\obj\x86\
目录 0 2016-05-30 19:59 GPS计算公式\GPS计算公式\obj\x86\Debug\
文件 2867 2016-05-30 15:36 GPS计算公式\GPS计算公式\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
文件 6356 2016-05-30 19:59 GPS计算公式\GPS计算公式\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 694 2016-05-30 20:07 GPS计算公式\GPS计算公式\obj\x86\Debug\GPS计算公式.csproj.FileListAbsolute.txt
文件 975 2016-05-30 19:59 GPS计算公式\GPS计算公式\obj\x86\Debug\GPS计算公式.csproj.GenerateResource.Cache
文件 16896 2016-05-30 19:59 GPS计算公式\GPS计算公式\obj\x86\Debug\GPS计算公式.exe
文件 180 2016-05-30 19:59 GPS计算公式\GPS计算公式\obj\x86\Debug\GPS计算公式.Form1.resources
文件 26112 2016-05-30 19:59 GPS计算公式\GPS计算公式\obj\x86\Debug\GPS计算公式.pdb
文件 180 2016-05-30 19:59 GPS计算公式\GPS计算公式\obj\x86\Debug\GPS计算公式.Properties.Resources.resources
目录 0 2016-05-30 15:36 GPS计算公式\GPS计算公式\obj\x86\Debug\TempPE\
文件 496 2016-05-30 15:36 GPS计算公式\GPS计算公式\Program.cs
目录 0 2016-05-30 15:36 GPS计算公式\GPS计算公式\Properties\
文件 1362 2016-05-30 15:36 GPS计算公式\GPS计算公式\Properties\AssemblyInfo.cs
文件 2882 2016-05-30 15:36 GPS计算公式\GPS计算公式\Properties\Resources.Designer.cs
文件 5612 2016-05-30 15:36 GPS计算公式\GPS计算公式\Properties\Resources.resx
............此处省略2个文件信息
- 上一篇:Ruby中文教程带源码
- 下一篇:纽贝尔门禁控制器搜索软件
相关资源
- WPF USB 网络 串口 通信软件
- B/S 网上订餐系统
- 教室管理系统.rar
- 武汉大学 科傻GPS 静态后处理软件
- 小鸡快跑游戏.
-
分别适用于.NET fr
amework 2.0和4.0的E - 汽车租赁系统............................
- 德卡D8读写器关于读写感应卡的一些代
- halcon 测量助手
- 开源的nmealib
- 图片存储到数据库保存二进制文件并
- 相干与非相干实现捕获与跟踪GPS
- 用Socket写的简易FTP服务器和客户端
- 企业销售管理信息系统(全套)
- 串口操作类(justinio)
- 天文钟GPS对时程序
- 基于Petri网的工作流(完整的原创源代
- 选择题自动考试系统
- 多线程实例:桌面智能弹球小游戏
- 用切比雪夫多项式标准化GPS卫星轨道
- 起算点点位不同对GPS-RTK测高的影响
- GPS-RTK技术在公婆泉矿区详查中的应用
- 土地信息管理系统
- ServiceStack V3.9 全部dll
- PDF pdfview.ocx 无水印
-
A web-ba
sed interview platform with geospat - 根据GPS数据计算航向公式
- Excel在GPS坐标转换计算中的应用
- GPS-RTK技术及EPSW全息测绘软件在沉陷治
- 基于GPS数据的露天矿道路网自动提取
评论
共有 条评论