Exemple #1
0
        protected override void Init(Gmetadata Gmetadata)
        {
            this.ItemSpliters = Gmetadata.ItemSplliter;

            PropertyIndexes = new Dictionary <string, int>();
            int i = 0;

            foreach (var name in this.Metadata.PropertyNames)
            {
                PropertyIndexes.Add(name.Trim(), i++);
            }
            //采用默认序列
            if (PropertyIndexes.Count == 0)
            {
                var defaultObj = Activator.CreateInstance <EpochInfo>();// typeof(TLineClass);

                var names = defaultObj.OrderedProperties;
                this.Metadata.PropertyNames = names.ToArray();
                i = 0;
                foreach (var name in this.Metadata.PropertyNames)
                {
                    PropertyIndexes.Add(name.Trim(), i++);
                }
            }


            InitStreamReader();
        }
Exemple #2
0
        /// <summary>
        /// 默认的元数据
        /// </summary>
        /// <returns></returns>
        public override Gmetadata GetDefaultMetadata()
        {
            Gmetadata data = Gmetadata.NewInstance;

            data.PropertyNames = new string[] {
                Geo.Utils.ObjectUtil.GetPropertyName <AppendStringToLineParam>(m => m.FileToAppdend),
                Geo.Utils.ObjectUtil.GetPropertyName <AppendStringToLineParam>(m => m.Content),
            };
            return(data);
        }
        /// <summary>
        /// 默认的元数据
        /// </summary>
        /// <returns></returns>
        public override Gmetadata GetDefaultMetadata()
        {
            Gmetadata data = Gmetadata.NewInstance;

            data.OutputFilePath = @"Data\OutputFilePath_" + DateTime.Now.Ticks + ".url";
            data.PropertyNames  = new string[] {
                Geo.Utils.ObjectUtil.GetPropertyName <CreateTxtParam>(m => m.OutputPath),
                Geo.Utils.ObjectUtil.GetPropertyName <CreateTxtParam>(m => m.Content),
            };
            return(data);
        }
Exemple #4
0
        /// <summary>
        /// 初始化
        /// </summary>
        /// <param name="Gmetadata"></param>
        protected override void Init(Gmetadata Gmetadata)
        {
            base.Init(Gmetadata);
            this.ItemSpliters   = new string[] { " " };
            StartIndex          = 0;
            this.CommentMarkers = new string[] { "#", "*" };

            ItemLengthes = new List <int>()
            {
                7, 18, 19, 19, 9, 8, 8, 8, 20, 20, 20, 20
            };
        }
        /// <summary>
        /// 默认的元数据
        /// </summary>
        /// <returns></returns>
        public override Gmetadata GetDefaultMetadata()
        {
            Gmetadata data = Gmetadata.NewInstance;

            data.PropertyNames = new string[] {
                Geo.Utils.ObjectUtil.GetPropertyName <DecompressParam>(m => m.InputPath),
                Geo.Utils.ObjectUtil.GetPropertyName <DecompressParam>(m => m.OutputPath),
                Geo.Utils.ObjectUtil.GetPropertyName <DecompressParam>(m => m.IsDeleteSource),
                Geo.Utils.ObjectUtil.GetPropertyName <DecompressParam>(m => m.IsOverwrite)
            };
            return(data);
        }
Exemple #6
0
        /// <summary>
        /// 默认的元数据
        /// </summary>
        /// <returns></returns>
        public override Gmetadata GetDefaultMetadata()
        {
            Gmetadata data = Gmetadata.NewInstance;

            data.OutputFilePath = @"Data\OutputFilePath_" + DateTime.Now.Ticks + ".url";
            data.PropertyNames  = new string[] {
                Geo.Utils.ObjectUtil.GetPropertyName <TimeScopeStringGeneratorParam>(m => m.Pattern),
                Geo.Utils.ObjectUtil.GetPropertyName <Sp3UrlGeneratorParam>(m => m.StartTime),
                Geo.Utils.ObjectUtil.GetPropertyName <Sp3UrlGeneratorParam>(m => m.EndTime),
                Geo.Utils.ObjectUtil.GetPropertyName <Sp3UrlGeneratorParam>(m => m.Interval),
            };
            return(data);
        }
Exemple #7
0
        /// <summary>
        /// 默认的元数据
        /// </summary>
        /// <returns></returns>
        public override Gmetadata GetDefaultMetadata()
        {
            Gmetadata data = Gmetadata.NewInstance;

            data.PropertyNames = new string[] {
                Geo.Utils.ObjectUtil.GetPropertyName <FtpParam>(m => m.InputPath),
                Geo.Utils.ObjectUtil.GetPropertyName <FtpParam>(m => m.OutputPath),
                Geo.Utils.ObjectUtil.GetPropertyName <FtpParam>(m => m.IsOverwrite),
                Geo.Utils.ObjectUtil.GetPropertyName <FtpParam>(m => m.Extension),
                VariableNames.UserName,
                VariableNames.Password
            };
            return(data);
        }
Exemple #8
0
        /// <summary>
        /// 默认的元数据
        /// </summary>
        /// <returns></returns>
        public override Gmetadata GetDefaultMetadata()
        {
            Gmetadata data = Gmetadata.NewInstance;

            data.PropertyNames = new string[] {
                Geo.Utils.ObjectUtil.GetPropertyName <Sp3UrlGeneratorParam>(m => m.Pattern),
                Geo.Utils.ObjectUtil.GetPropertyName <Sp3UrlGeneratorParam>(m => m.SourceName),
                Geo.Utils.ObjectUtil.GetPropertyName <Sp3UrlGeneratorParam>(m => m.StartTime),
                Geo.Utils.ObjectUtil.GetPropertyName <Sp3UrlGeneratorParam>(m => m.EndTime),
                Geo.Utils.ObjectUtil.GetPropertyName <Sp3UrlGeneratorParam>(m => m.Interval),
                Geo.Utils.ObjectUtil.GetPropertyName <Sp3UrlGeneratorParam>(m => m.OutputPath),
                Geo.Utils.ObjectUtil.GetPropertyName <Sp3UrlGeneratorParam>(m => m.LocalDirectory),
            };
            return(data);
        }
Exemple #9
0
        /// <summary>
        /// 默认的元数据
        /// </summary>
        /// <returns></returns>
        public override Gmetadata GetDefaultMetadata()
        {
            Gmetadata data = Gmetadata.NewInstance;

            data.PropertyNames = new string[] {
                Geo.Utils.ObjectUtil.GetPropertyName <XYZ>(m => m.X),
                Geo.Utils.ObjectUtil.GetPropertyName <XYZ>(m => m.Y),
                Geo.Utils.ObjectUtil.GetPropertyName <XYZ>(m => m.Z),
                Geo.Utils.ObjectUtil.GetPropertyName <XyzToGeoCoordParam>(m => m.OutputPath),

                VariableNames.SemiMinorAxis,
                VariableNames.FlatteningOrInverse,
                Geo.Utils.ObjectUtil.GetPropertyName <XyzToGeoCoordParam>(m => m.AngleUnit),
            };
            return(data);
        }
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="filePath"></param>
 /// <param name="Gmetadata"></param>
 public PointPositionParamWriter(string filePath, Gmetadata Gmetadata)
     : base(filePath, Gmetadata)
 {
 }
Exemple #11
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="filePath"></param>
 /// <param name="Gmetadata"></param>
 public TimeScopeStringGeneratorReader(string filePath, Gmetadata Gmetadata)
     : base(filePath, Gmetadata)
 {
 }
Exemple #12
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="gofFilePath"></param>
 /// <param name="Gmetadata"></param>
 public DifferFcbOfSatDcbReader(string gofFilePath, Gmetadata Gmetadata)
     : base(gofFilePath, Gmetadata)
 {
 }
Exemple #13
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="filePath"></param>
 /// <param name="Gmetadata"></param>
 public DoubleDifferParamWriter(string filePath, Gmetadata Gmetadata)
     : base(filePath, Gmetadata)
 {
 }
Exemple #14
0
 /// <summary>
 /// 构造函数,以数据流初始化
 /// </summary>
 /// <param name="stream"></param>
 /// <param name="Gmetadata"></param>
 public GnsserXyzCoordWriter(Stream stream, Gmetadata Gmetadata)
     : base(stream, Gmetadata)
 {
 }
Exemple #15
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="filePath"></param>
 /// <param name="Gmetadata"></param>
 public FtpParamWriter(string filePath, Gmetadata Gmetadata)
     : base(filePath, Gmetadata)
 {
 }
Exemple #16
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="filePath"></param>
 /// <param name="Gmetadata"></param>
 public BaselineReader(string filePath, Gmetadata Gmetadata)
     : base(filePath, Gmetadata)
 {
 }
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="filePath"></param>
 /// <param name="Gmetadata"></param>
 public DecompressParamWriter(string filePath, Gmetadata Gmetadata)
     : base(filePath, Gmetadata)
 {
 }
Exemple #18
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="filePath"></param>
 /// <param name="Gmetadata"></param>
 public CreateTxtParamReader(string filePath, Gmetadata Gmetadata)
     : base(filePath, Gmetadata)
 {
 }
Exemple #19
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="filePath"></param>
 /// <param name="Gmetadata"></param>
 public XyzToGeoCoordWriter(string filePath, Gmetadata Gmetadata)
     : base(filePath, Gmetadata)
 {
 }
Exemple #20
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="gofFilePath"></param>
 /// <param name="Gmetadata"></param>
 public FcbOfUpdWriter(string gofFilePath, Gmetadata Gmetadata)
     : base(gofFilePath, Gmetadata)
 {
     ItemSpliter = '\t';
 }
Exemple #21
0
 protected override void Init(Gmetadata Gmetadata)
 {
     base.Init(Gmetadata);
     this.ItemSpliters = new string[] { "\t" };
     StartIndex        = 1;
 }
Exemple #22
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="gofFilePath"></param>
 /// <param name="Gmetadata"></param>
 public GnsserXyzCoordReader(string gofFilePath, Gmetadata Gmetadata)
     : base(gofFilePath, Gmetadata)
 {
     //默认路径是 ProjectDirectory/Script/GofFileName.gof
     this.BaseDirectory = (Path.GetDirectoryName(gofFilePath));
 }
Exemple #23
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="filePath"></param>
 /// <param name="Gmetadata"></param>
 public EpochInfoWriter(string filePath, Gmetadata Gmetadata)
     : base(filePath, Gmetadata)
 {
 }
Exemple #24
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="filePath"></param>
 /// <param name="Gmetadata"></param>
 public AppendStringToLineParamReader(string filePath, Gmetadata Gmetadata)
     : base(filePath, Gmetadata)
 {
 }
Exemple #25
0
 /// <summary>
 /// 构造函数,以数据流初始化
 /// </summary>
 /// <param name="stream"></param>
 /// <param name="Gmetadata"></param>
 public StationInfoWriter(Stream stream, Gmetadata Gmetadata)
     : base(stream, Gmetadata, Encoding.ASCII)
 {
 }
Exemple #26
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="filePath"></param>
 /// <param name="Gmetadata"></param>
 public SiteInfoReader(string filePath, Gmetadata Gmetadata)
     : base(filePath, Gmetadata)
 {
 }
Exemple #27
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="filePath"></param>
 /// <param name="Gmetadata"></param>
 public Sp3UrlGeneratorReader(string filePath, Gmetadata Gmetadata)
     : base(filePath, Gmetadata)
 {
 }
Exemple #28
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="gofFilePath"></param>
 /// <param name="Gmetadata"></param>
 public OperationInfoWriter(string gofFilePath, Gmetadata Gmetadata)
     : base(gofFilePath, Gmetadata)
 {
     //默认路径是 ProjectDirectory/Script/GofFileName.gof
     this.BaseDirectory = (Path.GetDirectoryName(gofFilePath));
 }
Exemple #29
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="gofFilePath"></param>
 /// <param name="Gmetadata"></param>
 public WideLaneBiasItemReader(string gofFilePath, Gmetadata Gmetadata)
     : base(gofFilePath, Gmetadata)
 {
     ItemSpliters = new string[] { " " };
 }
Exemple #30
0
 /// <summary>
 /// 构造函数,以数据流初始化
 /// </summary>
 /// <param name="stream"></param>
 /// <param name="Gmetadata"></param>
 public OperationInfoWriter(Stream stream, Gmetadata Gmetadata)
     : base(stream, Gmetadata)
 {
 }