Ejemplo n.º 1
0
        private void Solver_ResultProduced(SimpleGnssResult entity, ObsFileProcessStreamer <MultiSiteEpochInfo, SimpleGnssResult> streamer)
        {
            if (entity == null)
            {
                return;
            }


            if (entity is SingleSiteGnssResult)
            {
                SingleSiteGnssResult result = entity as SingleSiteGnssResult;
                this.Coords.Add(new NamedRmsXyz(entity.Name, new RmsedXYZ(result.EstimatedXyz, result.EstimatedXyzRms)));
            }

            if (entity is IEstimatedBaseline)
            {
                var result = entity as IEstimatedBaseline;
                this.Coords.Add(new NamedRmsXyz(entity.Name, new RmsedXYZ(result.EstimatedXyzOfRov, XYZ.Parse(entity.ResultMatrix.Estimated.GetRmsVector()))));
            }
            if (this.Coords.Count == 0)
            {
                foreach (var item in streamer.Current)
                {
                    Coords.Add(new NamedRmsXyz(item.SiteName, new RmsedXYZ(item.SiteInfo.ApproxXyz, XYZ.Zero)));
                }
            }
        }
Ejemplo n.º 2
0
 private void Solver_ResultProduced(SimpleGnssResult product, ObsFileProcessStreamer <MultiSiteEpochInfo, SimpleGnssResult> arg2)
 {
     if (product is SingleSiteGnssResult)
     {
         var entity = product as SingleSiteGnssResult;
         this.Coords.Add(new NamedRmsXyz(entity.Name, new RmsedXYZ(entity.EstimatedXyz, entity.EstimatedXyzRms)));
     }
 }
Ejemplo n.º 3
0
        private void Solver_ResultProduced(SimpleGnssResult entity, ObsFileProcessStreamer <EpochInformation, SimpleGnssResult> streamer)
        {
            if (entity == null)
            {
                return;
            }

            if (entity is SingleSiteGnssResult)
            {
                SingleSiteGnssResult result = entity as SingleSiteGnssResult;
                this.Coords.Add(new NamedRmsXyz(entity.Name, new RmsedXYZ(result.EstimatedXyz, result.EstimatedXyzRms)));
            }

            if (entity is IWithEstimatedBaseline)
            {
                var result = entity as IWithEstimatedBaseline;
                this.Coords.Add(new NamedRmsXyz(entity.Name, result.GetEstimatedBaseline().EstimatedRmsXyzOfRov));
            }
        }