Esempio n. 1
0
        protected override void Run(string inputPath)
        {
            ObsFileConvertOption opt = GetOrInitObsFileFormatOption();
            //opt.OutputDirectory = this.OutputDirectory;
            string subDir = Geo.Utils.PathUtil.GetSubDirectory(InputRawPathes, inputPath);

            ObsFileFormater ObsFileFormater = new ObsFileFormater(opt, inputPath);

            ObsFileFormater.SubDirectory = subDir;
            ObsFileFormater.Init();
            ObsFileFormater.Run();

            base.Run(inputPath);
        }
Esempio n. 2
0
        private void button_testobs_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog = new OpenFileDialog();

            openFileDialog.Filter      = "Rinex Text|*.rnx;*.??o|All|*.*";;
            openFileDialog.Multiselect = true;

            if (openFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                string[] files = openFileDialog.FileNames;
                foreach (var filePath in files)
                {
                    var opt = new ObsFileConvertOption();
                    opt.IsEnableRinexVertion = true;
                    opt.Version = 3.02;
                    ObsFileFormater ObsFileFormater = new ObsFileFormater(opt, filePath);
                    ObsFileFormater.Init();
                    ObsFileFormater.Run();
                }
                Utils.FormUtil.ShowOkMessageBox("执行完毕!");
            }
        }
Esempio n. 3
0
        private void Process(string subDir, ObsFileConvertOption opt, string inputPath)
        {
            try
            {
                ShowInfo("processing :" + inputPath);

                ObsFileFormater ObsFileFormater = new ObsFileFormater(opt, inputPath);
                CurrentRunners.Add(ObsFileFormater);
                ObsFileFormater.SubDirectory = subDir;
                ObsFileFormater.Init();
                ObsFileFormater.Run();
                CurrentRunners.Remove(ObsFileFormater);
                this.Invoke(new Action(() =>
                {
                    this.progressBar1.PerformStep();
                    this.progressBar1.Refresh();
                }));
            }catch (Exception ex)
            {
                log.Error("转换出错:\t" + inputPath + "\t, " + ex.Message);
            }
        }