Esempio n. 1
0
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="pathes"></param>
        public IndicatedEphemerisService(Dictionary <SatelliteType, string> pathes, GnssProcessOption processOption, IgsProductSourceOption option)
        {
            this.Name = "指定路径的多系统星历服务";
            data      = new BaseDictionary <SatelliteType, FileEphemerisService>();
            foreach (var item in  pathes)
            {
                if (!File.Exists(item.Value))
                {
                    log.Error("指定的 " + item.Key + " 星历路径不存在"); continue;
                }

                data[item.Key] = EphemerisDataSourceFactory.Create(item.Value, FileEphemerisType.Unkown, true, option.MinSequentialSatCount, option.Sp3EphMaxBreakingCount, processOption.EphemerisInterpolationOrder);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// 从文件判断。
 /// </summary>
 /// <param name="filePath"></param>
 /// <returns></returns>
 public IFileEphemerisService CreateFromFile(string filePath)
 {
     return(EphemerisDataSourceFactory.Create(filePath));
 }