• 大小: 183KB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2021-06-18
  • 语言: C#
  • 标签: 空中三角  解析  测量  

资源简介

本代码仅作解析空中三角测量程序参考,属于C#代码,vs。

资源截图

代码片段和文件信息

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;
using KongZhongSanJiao;
using Array;
using System.Text.Regularexpressions;


namespace _1501060116huajun
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            
        }

        private void 退出ToolStripMenuItem_Click(object sender EventArgs e)
        {
            Application.Exit();
           // this.Close();
        }
        SanJiao sj = new SanJiao();
        int flag = 0;
        private void 导入数据ToolStripMenuItem_Click(object sender EventArgs e)
        {
            flag = 1;
            string path = Directory.GetCurrentDirectory();
            OpenFileDialog ofd = new OpenFileDialog();
            ofd.title = “打开“;
            ofd.Filter = “摄影测量|*.txt“;
            if (ofd.ShowDialog() == DialogResult.OK)
            {
                string file = ofd.FileName;
                sj.input(file);
                sj.xiangdui();
                sj.Modellink();
                sj.juedui();

                int[] rows = sj.rows;
                int len = rows.Length;

                //dataGridView1.Rows.Add();
                for (int i = 0; i < rows[3]; i++)
                {
                    //dataGridView1.Rows[0].Cells[0].Value = (sj.photo[2 0]).ToString(“0.000000“);
                  /* if (i==1)
                    {
                        dataGridView1.Rows[i].Cells[0].Value = ((int)sj.photo[i 0]).ToString(“0.000000“);
                        dataGridView1.Rows[i].Cells[1].Value = ((int)sj.photo[i 1]).ToString(“0.000000“);
                    }*/
                    //else
                    //{

                      dataGridView1.Rows.Add();
                      
                    //int i = dataGridView1.Rows.Count - 1;

                    //dataGridView1.CurrentCell = dataGridView1[0 i]; // 强制显示该行

                    // dataGridView1[0 i].Selected = true;   //光标移至该行
                        dataGridView1.Rows[i].Cells[0].Value = sj.photo[i 0].ToString();
                        dataGridView1.Rows[i].Cells[1].Value = sj.photo[i 1].ToString();
                        dataGridView1.Rows[i].Cells[2].Value = sj.photo[i 2].ToString();
                        dataGridView1.Rows[i].Cells[3].Value = sj.photo[i 3].ToString();
                        dataGridView1.Rows[i].Cells[4].Value = sj.photo[i 4].ToString();
                        
                   // }
                }
                int len2 = sj.yizhi.GetLength(0);
                for (int i = 0; i < 4; i++)
                {
                    dataGridView2.Rows.Add();
                    dataGridView2.Rows[i].Cells[0].Value = sj.yizhi[i 0].ToString();
                    dataGridView2.Rows[i].Cells[1].Valu

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-07-18 21:25  1501060116huajun\
     目录           0  2018-07-11 08:28  1501060116huajun\1501060116huajun\
     文件        4100  2018-07-11 11:20  1501060116huajun\1501060116huajun\1501060116huajun.csproj
     文件       47548  2018-07-15 14:47  1501060116huajun\1501060116huajun\Form1.Designer.cs
     文件       13985  2018-07-17 11:11  1501060116huajun\1501060116huajun\Form1.cs
     文件       12654  2018-07-15 14:47  1501060116huajun\1501060116huajun\Form1.resx
     文件         498  2018-07-11 08:24  1501060116huajun\1501060116huajun\Program.cs
     目录           0  2018-07-11 08:24  1501060116huajun\1501060116huajun\Properties\
     文件        1364  2018-07-11 08:24  1501060116huajun\1501060116huajun\Properties\AssemblyInfo.cs
     文件        2886  2018-07-11 08:24  1501060116huajun\1501060116huajun\Properties\Resources.Designer.cs
     文件        5612  2018-07-11 08:24  1501060116huajun\1501060116huajun\Properties\Resources.resx
     文件        1104  2018-07-11 08:24  1501060116huajun\1501060116huajun\Properties\Settings.Designer.cs
     文件         249  2018-07-11 08:24  1501060116huajun\1501060116huajun\Properties\Settings.settings
     目录           0  2018-07-18 21:09  1501060116huajun\1501060116huajun\bin\
     目录           0  2018-07-18 21:25  1501060116huajun\1501060116huajun\bin\Debug\
     文件       29184  2018-07-18 21:02  1501060116huajun\1501060116huajun\bin\Debug\1501060116huajun.exe
     文件       40448  2018-07-18 21:02  1501060116huajun\1501060116huajun\bin\Debug\1501060116huajun.pdb
     文件       11600  2018-07-18 21:03  1501060116huajun\1501060116huajun\bin\Debug\1501060116huajun.vshost.exe
     文件         490  2018-04-12 07:35  1501060116huajun\1501060116huajun\bin\Debug\1501060116huajun.vshost.exe.manifest
     文件        9728  2018-07-18 21:02  1501060116huajun\1501060116huajun\bin\Debug\Array.dll
     文件       34304  2018-07-18 21:02  1501060116huajun\1501060116huajun\bin\Debug\Array.pdb
     文件       19968  2018-07-18 21:02  1501060116huajun\1501060116huajun\bin\Debug\KongZhongSanJiao.dll
     文件       26112  2018-07-18 21:02  1501060116huajun\1501060116huajun\bin\Debug\KongZhongSanJiao.pdb
     文件        2550  2018-07-17 09:19  1501060116huajun\1501060116huajun\bin\Debug\摄影测量数据.txt
     目录           0  2018-07-11 08:24  1501060116huajun\1501060116huajun\obj\
     目录           0  2018-07-11 08:24  1501060116huajun\1501060116huajun\obj\x86\
     目录           0  2018-07-18 21:09  1501060116huajun\1501060116huajun\obj\x86\Debug\
     文件        1182  2018-07-18 21:03  1501060116huajun\1501060116huajun\obj\x86\Debug\1501060116huajun.csproj.FileListAbsolute.txt
     文件         975  2018-07-15 14:47  1501060116huajun\1501060116huajun\obj\x86\Debug\1501060116huajun.csproj.GenerateResource.Cache
     文件       13778  2018-07-18 21:02  1501060116huajun\1501060116huajun\obj\x86\Debug\1501060116huajun.csprojResolveAssemblyReference.cache
     文件       29184  2018-07-18 21:02  1501060116huajun\1501060116huajun\obj\x86\Debug\1501060116huajun.exe
............此处省略43个文件信息

评论

共有 条评论