Example #1
0
        void StartCheck(CMCheckedGeoPoint STpoint)
        {
            FillPointSpec(STpoint);

            //TODO - убрать в класс
            STpoint.WriteResultCheck(string.Format("Lat {0}; Lng {1}", CMBaseGeoPoint.ShowDegMiSec(STpoint.Lat), CMBaseGeoPoint.ShowDegMiSec(STpoint.Lng)));
            STpoint.WriteResultCheck(string.Format("Азимут {0}; Дальность {1}; Абсолютная высота {2}", STpoint.Angle.ToString(), STpoint.Distance.ToString(), STpoint.Height.ToString()));
            STpoint.WriteResultCheck(string.Format("X ={0}; Y ={1}", STpoint.Offset.Lat.ToString(), STpoint.Offset.Lng.ToString()));


            // Проверка плоскостей
            //Перевести все проверки к такому виду
            STpoint.AddData(APSurfaces.SurfaceA.CheckSurface(STpoint, APSurfaces.SurfaceB));               //горизонтальная
            STpoint.AddData(APSurfaces.SurfaceB.CheckSurface(STpoint, APSurfaces.SurfaceA));               //коническая
            STpoint.AddData(APSurfaces.SurfaceC.CheckSurface(STpoint, APSurfaces.SurfaceB));               //круглая
            STpoint.AddData(APSurfaces.SurfaceOuterHorizontal.CheckSurface(STpoint, APSurfaces.SurfaceB)); //круглая
            STpoint.AddData(APSurfaces.SurfaceE.CheckSurface(STpoint, APSurfaces.SurfaceC));               //круглая
            STpoint.AddData(APSurfaces.SurfaceD.CheckSurface(STpoint, APSurfaces.SurfaceE));               //круглая

            STpoint.AddData(APSurfaces.SurfaceNoiseG.CheckSurface(STpoint));                               //Эллипс
            STpoint.AddData(APSurfaces.SurfaceNoiseV.CheckSurface(STpoint, APSurfaces.SurfaceNoiseG));     //Эллипс
            STpoint.AddData(APSurfaces.SurfaceNoiseB.CheckSurface(STpoint, APSurfaces.SurfaceNoiseV));     //Эллипс

            STpoint.AddData(APSurfaces.ApproachSurface.CheckSurface(STpoint));
            STpoint.AddData(APSurfaces.TakeoffSurface.CheckSurface(STpoint));
            STpoint.AddData(APSurfaces.TakeoffSurfaceInfo.CheckSurface(STpoint));

            STpoint.AddData(APSurfaces.InnerApproachSurface.CheckSurface(STpoint));
            STpoint.AddData(APSurfaces.CancelledApproachSurface.CheckSurface(STpoint, STpoint.Offset.Lat));
            STpoint.AddData(APSurfaces.InnerTransitionSurface.CheckSurface(STpoint, APSurfaces.InnerApproachSurface, APSurfaces.CancelledApproachSurface));
            STpoint.AddData(APSurfaces.TransitionSurface.CheckSurface(STpoint));
            STpoint.AddData(APSurfaces.APPVP_B.CheckSurface(STpoint));

            //Перевести все проверки к такому виду

            TextResult.Text += TextResult.Text.Length > 0 ? Environment.NewLine + "***********************************" + Environment.NewLine : "";
            TextResult.Text += STpoint.ResultCheck + Environment.NewLine;
            TextResult.Text += STpoint.CheckResult() + Environment.NewLine;

            mCheckedGeoPoin.Add(STpoint);
            rtxtDotDescription.Text  = STpoint.ResultCheck + Environment.NewLine;
            rtxtDotDescription.Text += STpoint.CheckResult();

            GMap.NET.WindowsForms.Markers.GMarkerGoogle marker = STpoint.GetGMarkerGoogle(GMap.NET.WindowsForms.Markers.GMarkerGoogleType.green);
            //marker.ToolTipText = STpoint.ResultCheck;

            marker.Tag = new CMBaseGeoPoint(STpoint.GeoDotType, mCheckedGeoPoin.Count - 1);
            polyOverlay.Markers.Add(marker);

            listBox1.Items.Add(STpoint.GetCaption());
        }
Example #2
0
        void testproc()
        {
            //показать на карте точки, которые образуют данный полигон


            //GetAsimut( APInf.CRW.RunwayEnd, APInf.CRW.RunwayBegin);
            //GetAsimut(APInf.CRW.RunwayBegin, APInf.CRW.RunwayEnd);


            //CMGeoPoint FinishPoint = CMGeoBase.GetCoordinate(new CMGeoPoint(enumGeoPointType.geoptControlDot, 43.389269, 132.130642, 9.87, "07R"), CMBaseGeoPoint.ShowDegreeFraction(61, 1, 30), 3502.54);

            ////CMGeoPoint FinishPoint = GetCoordinate(new CMGeoPoint(enumGeoPointType.geoptControlDot, 43.389269, 132.130642, 9.87, "07R"), CMBaseGeoPoint.ShowDegreeFraction(61, 1, 30), 3502.54);
            //////CMGeoPoint FinishPoint = GetCoordinate(new CMGeoPoint(enumGeoPointType.geoptControlDot, CMBaseGeoPoint.ShowDegreeFraction(42, 0, 10.5), CMBaseGeoPoint.ShowDegreeFraction(105, 47, 19.4567), 14.8, "КТА"), CMBaseGeoPoint.ShowDegreeFraction(48, 18, 03.4), 25258.87);
            //TextResult.Text  =  string.Format ("{0} --- {1}",CMBaseGeoPoint.ShowDegMiSec(FinishPoint.Coordinates.Lat),CMBaseGeoPoint.ShowDegMiSec(FinishPoint.Coordinates.Lng));

            //TextResult.Text  += string.Format("{0}",CMGeoBase.GetDistance(APInf.CRW.RunwayBegin,APInf.CRW.RunwayEnd));

            TextResult.Text += string.Format("Начало ВПП {0}  {1}", CMBaseGeoPoint.ShowDegMiSec(APInf.CRW.RunwayBegin.Coordinates.Lat), CMBaseGeoPoint.ShowDegMiSec(APInf.CRW.RunwayBegin.Coordinates.Lng)) + " \r\n";
            TextResult.Text += string.Format("Конец ВПП {0}  {1}", CMBaseGeoPoint.ShowDegMiSec(APInf.CRW.RunwayEnd.Coordinates.Lat), CMBaseGeoPoint.ShowDegMiSec(APInf.CRW.RunwayEnd.Coordinates.Lng)) + " \r\n";



            //TextResult.Text += string.Format(" {0} ", GetAsimut(APInf.CRW.RunwayEnd, APInf.CRW.RunwayBegin)) + " \r\n";

            TextResult.Text += string.Format("Расстояние <=> {0} ", CMGeoBase.GetDistance(APInf.CRW.RunwayBegin, APInf.CRW.RunwayEnd)) + " \r\n";


            TextResult.Text += string.Format("А1 с К-> Н {0} ", CMBaseGeoPoint.ShowDegMiSec(CMGeoBase.GetAsimut(APInf.CRW.RunwayEnd, APInf.CRW.RunwayBegin, 0))) + " \r\n";
            TextResult.Text += string.Format("А2 с К-> Н {0} ", CMBaseGeoPoint.ShowDegMiSec(CMGeoBase.GetAsimut(APInf.CRW.RunwayEnd, APInf.CRW.RunwayBegin, 1))) + " \r\n";

            TextResult.Text += string.Format("А1 с Н-> К {0} ", CMBaseGeoPoint.ShowDegMiSec(CMGeoBase.GetAsimut(APInf.CRW.RunwayBegin, APInf.CRW.RunwayEnd, 0))) + " \r\n";
            TextResult.Text += string.Format("А2 с Н-> К {0} ", CMBaseGeoPoint.ShowDegMiSec(CMGeoBase.GetAsimut(APInf.CRW.RunwayBegin, APInf.CRW.RunwayEnd, 1))) + " \r\n";

            TextResult.Text += string.Format("Аold с Н-> К {0} ", CMBaseGeoPoint.ShowDegMiSec(CMGeoBase.Azimut(APInf.CRW.RunwayBegin.Coordinates, APInf.CRW.RunwayEnd.Coordinates))) + " \r\n";
            TextResult.Text += string.Format("Аold с К-> Н {0} ", CMBaseGeoPoint.ShowDegMiSec(CMGeoBase.Azimut(APInf.CRW.RunwayEnd.Coordinates, APInf.CRW.RunwayBegin.Coordinates))) + " \r\n";
        }
Example #3
0
 /// <summary>
 /// Show Simple view
 /// </summary>
 /// <returns>string data</returns>
 public string ShowSimple()
 {
     //return String.Format("{0}°{1}'{2}''", this.Gr, this.Min, this.Sec);
     return(CMBaseGeoPoint.ShowDegMiSec(this.Degree, this.Minutes, this.Seconds));
 }
Example #4
0
 private void gmaper_MouseMove(object sender, MouseEventArgs e)
 {
     lblCurPosition.Text = string.Format("{0} {1}", CMBaseGeoPoint.ShowDegMiSec(gmaper.FromLocalToLatLng(e.X, e.Y).Lat), CMBaseGeoPoint.ShowDegMiSec(gmaper.FromLocalToLatLng(e.X, e.Y).Lng));
 }