资源简介

这里面是摄影测量单向空间后方交会程序个人收集的集合!

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using System.Data;
using System.IO;
using System.Diagnostics;

public partial class _Default : System.Web.UI.Page 
{
    private double[] data = new double[20];  //保存表中的数据
    private double f = 0;  //主距

    protected void Page_Load(object sender EventArgs e)
    {
        Bind();

    }
    /// 
    /// 下面申明的为一个类
    /// 

    public class Shuju
    {
        Double x;

        public Double X
        {
            get { return x; }
            set { x = value; }
        }
        Double y;

        public Double Y
        {
            get { return y; }
            set { y = value; }
        }
        Double m;

        public Double M
        {
            get { return m; }
            set { m = value; }
        }
        Double n;

        public Double N
        {
            get { return n; }
            set { n = value; }
        }
        Double p;

        public Double P
        {
            get { return p; }
            set { p = value; }
        }
    }
    /// 
    /// 网页加载事件
    /// 

    public void Bind()
    {
       int i = 0 j;

        try
        {
            List itemList = new List();
            //DataSet ds = new DataSet();
            //DataTable mytable = ds.Tables.Add(“mytable“);
            //DataRow dr = mytable.NewRow();
            //DataColumn cu1 = new DataColumn(“x“ typeof(System.String));
            //DataColumn cu2 = new DataColumn(“y“ typeof(System.String));
            //DataColumn cu3 = new DataColumn(“X“ typeof(System.String));
            //DataColumn cu4 = new DataColumn(“Y“ typeof(System.String));
            //DataColumn cu5 = new DataColumn(“Z“ typeof(System.String));
            //mytable.Columns.Add(cu1);
            //mytable.Columns.Add(cu2);
            //mytable.Columns.Add(cu3);
            //mytable.Columns.Add(cu4);
            //mytable.Columns.Add(cu5);
            //double[] one = new double[45];
            string[] lines = System.IO.File.ReadAllLines(@“D:\data.txt“ Encoding.Default);
            foreach (string item in lines)
            {
                string[] strs = item.Split(‘|‘);
                itemList.Add(new Shuju { X = Convert.ToDouble(strs[0]) Y = Convert.ToDouble(strs[1]) M = Convert.ToDouble(strs[2]) N = Convert.ToDouble(strs[3]) P = Convert.ToDouble(strs[4]) });
                j = 5 * i;
                data[j] = Convert.ToDouble(strs[0]) / 1000;
                data[j + 1] = Convert.ToDouble(strs[1]) / 1000;
                data[j + 2] = Convert.ToDouble(strs[2]);
                data[j + 3] = Convert.ToDouble(strs[3]);
                data[j + 4] = Convert.ToDouble(strs[4]);
                i++;
               

            }
            GridView1

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-07-12 19:56  单向空间后方交会\
     目录           0  2012-05-11 07:10  单向空间后方交会\GeoMatics\
     目录           0  2012-05-11 07:10  单向空间后方交会\GeoMatics\App_Code\
     文件        9540  2012-05-08 18:52  单向空间后方交会\GeoMatics\App_Code\scale.cs
     文件       10696  2012-05-08 18:52  单向空间后方交会\GeoMatics\App_Code\Tongyong.cs
     目录           0  2012-05-06 10:38  单向空间后方交会\GeoMatics\App_Data\
     文件         159  2012-05-06 11:39  单向空间后方交会\GeoMatics\data.txt
     文件        2878  2012-05-06 19:21  单向空间后方交会\GeoMatics\Default.aspx
     文件        5443  2012-05-08 19:45  单向空间后方交会\GeoMatics\Default.aspx.cs
     文件         136  2012-05-06 18:38  单向空间后方交会\GeoMatics\Result.txt
     文件        8068  2012-05-06 12:12  单向空间后方交会\GeoMatics\web.config
     目录           0  2012-05-16 21:59  单向空间后方交会\WindowsApplication3\
     目录           0  2012-05-16 20:27  单向空间后方交会\WindowsApplication3\WindowsApplication3\
     文件         947  2012-05-16 08:26  单向空间后方交会\WindowsApplication3\WindowsApplication3.sln
     文件       25088  2012-05-16 19:57  单向空间后方交会\WindowsApplication3\WindowsApplication3.suo
     目录           0  2012-05-16 20:27  单向空间后方交会\WindowsApplication3\WindowsApplication3\bin\
     目录           0  2012-05-16 20:27  单向空间后方交会\WindowsApplication3\WindowsApplication3\bin\Debug\
     文件       19456  2012-05-16 08:50  单向空间后方交会\WindowsApplication3\WindowsApplication3\bin\Debug\WindowsApplication3.exe
     文件       40448  2012-05-16 08:50  单向空间后方交会\WindowsApplication3\WindowsApplication3\bin\Debug\WindowsApplication3.pdb
     文件       11592  2012-05-16 19:11  单向空间后方交会\WindowsApplication3\WindowsApplication3\bin\Debug\WindowsApplication3.vshost.exe
     文件         490  2010-03-17 22:39  单向空间后方交会\WindowsApplication3\WindowsApplication3\bin\Debug\WindowsApplication3.vshost.exe.manifest
     文件       15637  2012-05-16 08:56  单向空间后方交会\WindowsApplication3\WindowsApplication3\Form1.cs
     文件       11416  2010-03-20 16:56  单向空间后方交会\WindowsApplication3\WindowsApplication3\Form1.Designer.cs
     文件        6012  2010-03-20 16:56  单向空间后方交会\WindowsApplication3\WindowsApplication3\Form1.resx
     目录           0  2012-05-16 20:27  单向空间后方交会\WindowsApplication3\WindowsApplication3\obj\
     目录           0  2012-05-16 20:27  单向空间后方交会\WindowsApplication3\WindowsApplication3\obj\Debug\
     文件        5742  2012-05-16 08:50  单向空间后方交会\WindowsApplication3\WindowsApplication3\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件         332  2012-05-16 08:31  单向空间后方交会\WindowsApplication3\WindowsApplication3\obj\Debug\GenerateResource.read.1.tlog
     文件         794  2012-05-16 08:31  单向空间后方交会\WindowsApplication3\WindowsApplication3\obj\Debug\GenerateResource.write.1.tlog
     目录           0  2010-03-20 15:13  单向空间后方交会\WindowsApplication3\WindowsApplication3\obj\Debug\TempPE\
     文件         930  2012-05-16 19:11  单向空间后方交会\WindowsApplication3\WindowsApplication3\obj\Debug\WindowsApplication3.csproj.FileListAbsolute.txt
............此处省略145个文件信息

评论

共有 条评论