public override bool Equals(object obj) { DMS o = obj as DMS; if (o == null) { return(false); } return(IsPlus == o.IsPlus && Degree == o.Degree && Minute == o.Minute && Second == o.Second); }
/// <summary> /// 行数据 /// </summary> /// <returns></returns> public Dictionary <string, object> GetObjectRow() { Dictionary <string, object> row = new Dictionary <string, object>(); row["Name"] = Name; row["X"] = XY.X; row["Y"] = XY.Y; row["LonDMS"] = new DMS(this.LonLat.Lon); row["LatDMS"] = new DMS(this.LonLat.Lat); row["AveGeoHeight"] = AveGeoHeight; row["Lon"] = this.LonLat.Lon; row["Lat"] = this.LonLat.Lat; return(row); }
/// <summary> /// 度小数到度.分秒 /// </summary> /// <param name="deg"></param> /// <returns></returns> public static double DegToD_ms(double deg) { DMS dms = new DMS(deg); return(dms.D_ms); }