public Shape(double lng, double lat, double _years)
 {
     centerPoint           = new PointLocation();
     centerPoint.Longitude = lng;
     centerPoint.Latitude  = lat;
     years = _years;
 }
 public Shape(double lng, double lat)
 {
     centerPoint           = new PointLocation();
     centerPoint.Longitude = lng;
     centerPoint.Latitude  = lat;
 }
 /// <summary>
 /// 输入一个闪电,判断其对应中心点经纬度 方向|| Get direction of a strike
 /// </summary>
 /// <param name="_strike"></param>
 /// <returns></returns>
 private LightningStrikeDirectionEnum JudgeLightningStrikeDirection(LightningStrikeStandard _strike, PointLocation _centerPoint)
 {
     try
     {
         LightningStrikeDirectionEnum result = new LightningStrikeDirectionEnum();
         double angle = AngleClass.CalcueAngle(_centerPoint.Longitude, _centerPoint.Latitude, _strike.Longitude, _strike.Latitude);
         result = AngleClass.GetLightningStrikeDirection(angle);
         return(result);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }