• 大小: 123KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-05
  • 语言: 其他
  • 标签: C#语言  

资源简介

摄影测量学中用已知地面点和像点坐标求外方位元素

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Data.OleDb;

namespace 空间后方交会解外方位元素
{
    public partial class Form1 : Form
    {
        double m f;
        double X1 = 0 Y1 = 0 Z1 = 0;
        double Xs0 Ys0 Zs0 ψ0 ω0 κ0;//外方位元素的初始值
        
        double[] R = new double[6 6];//旋转矩阵R
        public Form1()
        {
            InitializeComponent();
        }

        #region //菜单
        private void 新建ToolStripMenuItem_Click(object sender EventArgs e)
        {
            
                
                dataGridView1.Columns.Clear();

                label14.Text = “请输入新的数据...... 说明:x_、y_为像点坐标,X_、Y_、Z_为地面点坐标,且数据行数必须大于3行“;
                label14.Visible = true;
                dataGridView1.Visible = true;
                dataGridView1.Columns.Add(“x  (mm)“ “x  (mm)“);
                dataGridView1.Columns.Add(“y  (mm)“ “y  (mm)“);
                dataGridView1.Columns.Add(“X  (m)“ “X  (m)“);
                dataGridView1.Columns.Add(“Y  (m)“ “Y  (m)“);
                dataGridView1.Columns.Add(“Z  (m)“ “Z  (m)“);

                if (dataGridView1.RowCount !=0)
                {
                    button1.Enabled = true;
                }
               
            

        }

        private void 打开ToolStripMenuItem_Click(object sender EventArgs e)
        {
            OpenFileDialog op = new OpenFileDialog();
            op.Filter = “(EXCEL)*.xls|*.xls“;
            if (op.ShowDialog() == DialogResult.OK)
            {
                dataGridView1.Columns.Clear();
                dataGridView1.Visible = true;

                string s= “select * from [Sheet1$]“;
                string c = “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=“ + op.FileName + “;Excel 8.0;HDR=Yes;IMEX=1“;
                OleDbConnection connection= new OleDbConnection(c);
                connection.Open();
                OleDbCommand com= new OleDbCommand(s connection );
                OleDbDataReader read = com.ExecuteReader();
                DataTable tab = new DataTable();
                for (int i = 0; i < read.FieldCount; i++)
                    tab.Columns.Add(read.GetName(i) read.GetFieldType(i));

                DataRow row1;

                while (read.Read())
                {
                    row1 = tab.NewRow();

                    for (int j = 0; j < tab.Columns.Count; j++)
                    {
                        row1[j] = read.GetValue(j);
                    }
                    tab.Rows.Add(row1);


                }

                dataGridView1.DataSource = tab;
                if (dataGridView1.RowCount != 0)
                {
                    button1.Enabled = true;
                }


            }
        }

        private void 关闭ToolStripMenuItem_Click(ob

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      16896  2009-12-01 21:25  空间后方交会算外方位元素\数据.xls

     文件        998  2009-12-01 22:33  空间后方交会算外方位元素\空间后方交会解外方位元素.sln

    ..A..H.     23040  2009-12-02 07:46  空间后方交会算外方位元素\空间后方交会解外方位元素.suo

     文件       5456  2009-12-01 22:33  空间后方交会算外方位元素\UpgradeLog.xml

     文件      47616  2009-12-02 03:38  空间后方交会算外方位元素\Doc1.doc

     文件        997  2009-11-21 21:32  空间后方交会算外方位元素\Backup\空间后方交会解外方位元素.sln

    ..A..H.     21504  2009-12-01 22:10  空间后方交会算外方位元素\Backup\空间后方交会解外方位元素.suo

     文件      12908  2009-12-01 22:01  空间后方交会算外方位元素\Backup\空间后方交会解外方位元素\Form1.cs

     文件      23684  2009-12-01 22:01  空间后方交会算外方位元素\Backup\空间后方交会解外方位元素\Form1.Designer.cs

     文件       6012  2009-12-01 22:01  空间后方交会算外方位元素\Backup\空间后方交会解外方位元素\Form1.resx

     文件        495  2009-11-21 21:32  空间后方交会算外方位元素\Backup\空间后方交会解外方位元素\Program.cs

     文件       5769  2009-12-01 22:10  空间后方交会算外方位元素\Backup\空间后方交会解外方位元素\矩阵运算.cs

     文件       3322  2009-12-01 21:47  空间后方交会算外方位元素\Backup\空间后方交会解外方位元素\空间后方交会解外方位元素.csproj

     文件       1244  2009-11-21 21:32  空间后方交会算外方位元素\Backup\空间后方交会解外方位元素\Properties\AssemblyInfo.cs

     文件       2926  2009-11-21 21:32  空间后方交会算外方位元素\Backup\空间后方交会解外方位元素\Properties\Resources.Designer.cs

     文件       5612  2009-11-21 21:32  空间后方交会算外方位元素\Backup\空间后方交会解外方位元素\Properties\Resources.resx

     文件       1119  2009-11-21 21:32  空间后方交会算外方位元素\Backup\空间后方交会解外方位元素\Properties\Settings.Designer.cs

     文件        249  2009-11-21 21:32  空间后方交会算外方位元素\Backup\空间后方交会解外方位元素\Properties\Settings.settings

     文件       3348  2009-12-01 22:33  空间后方交会算外方位元素\_UpgradeReport_Files\UpgradeReport.css

     文件      12505  2008-01-11 01:25  空间后方交会算外方位元素\_UpgradeReport_Files\UpgradeReport.xslt

     文件         69  2009-12-01 22:33  空间后方交会算外方位元素\_UpgradeReport_Files\UpgradeReport_Minus.gif

     文件         71  2009-12-01 22:33  空间后方交会算外方位元素\_UpgradeReport_Files\UpgradeReport_Plus.gif

     文件        495  2009-11-21 21:32  空间后方交会算外方位元素\空间后方交会解外方位元素\Program.cs

     文件       3530  2009-12-01 22:33  空间后方交会算外方位元素\空间后方交会解外方位元素\空间后方交会解外方位元素.csproj

     文件       5370  2009-12-02 03:33  空间后方交会算外方位元素\空间后方交会解外方位元素\矩阵运算.cs

     文件       6012  2009-12-02 03:35  空间后方交会算外方位元素\空间后方交会解外方位元素\Form1.resx

     文件      22958  2009-12-02 03:35  空间后方交会算外方位元素\空间后方交会解外方位元素\Form1.Designer.cs

     文件      15303  2009-12-02 03:35  空间后方交会算外方位元素\空间后方交会解外方位元素\Form1.cs

     文件      25088  2009-12-02 03:35  空间后方交会算外方位元素\空间后方交会解外方位元素\bin\Debug\空间后方交会解外方位元素.exe

     文件      44544  2009-12-02 03:35  空间后方交会算外方位元素\空间后方交会解外方位元素\bin\Debug\空间后方交会解外方位元素.pdb

............此处省略31个文件信息

评论

共有 条评论