Esempio n. 1
0
        public IBlockItem Init(string line)
        {
            this.SiteCode                    = line.Substring(1, 4);
            this.PointCode                   = line.Substring(6, 2).Trim();
            this.SolutionID                  = line.Substring(9, 4).Trim();
            this.ObservationCode             = line.Substring(14, 1);
            this.DateStart                   = Time.ParseYds(line.Substring(16, 12));
            this.DateEnd                     = Time.ParseYds(line.Substring(29, 12));
            this.EccentricityReferenceSystem = line.Substring(42, 3);
            string[] strs = line.Substring(46, 26).Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
            int      i    = 0;

            this.Une = HEN.TryParse(strs[i++], strs[i++], strs[i++]);

            return(this);
        }
Esempio n. 2
0
 /// <summary>
 /// 北东天坐标
 /// </summary>
 /// <param name="hen"></param>
 public ENU(HEN hen)
     : this(hen.E, hen.N, hen.H)
 {
 }
Esempio n. 3
0
 /// <summary>
 /// 初始化
 /// </summary>
 /// <param name="hen"></param>
 public NEU(HEN hen) : this(hen.N, hen.E, hen.H)
 {
 }
Esempio n. 4
0
 /// <summary>
 /// 局部坐标的转换。
 /// </summary>
 /// <param name="hen"></param>
 /// <returns></returns>
 public static NEU HenToNeu(HEN hen)
 {
     return(new NEU(hen.N, hen.E, hen.H));
 }