public List<PointBase> ConvertTo(CoordinateSystem destCs, IEnumerable<PointBase> points)
 {
     List<PointBase> list = new List<PointBase>();
     foreach (PointBase current in points)
     {
         BlhPoint p = this.ToWgs84(current);
         PointBase pointBase = destCs.FromWgs84(p);
         pointBase.Id = current.Id;
         pointBase.AddTags(current);
         list.Add(pointBase);
     }
     return list;
 }
 public void LoadFromDefaults()
 {
     this._degreesFormat = DegreesCoordinate.DefaultDegreesFormat;
     this._degreesPrecision = DegreesCoordinate.DefaultPrecision;
     this._XYPrecision = XYCoordinate.DefaultPrecision;
     this._coordinateSystem = CoordinateSystem.Default;
 }
Example #3
0
 /// <summary>
 /// Конструктор коприует параметры системы координат и ID.
 /// </summary>
 ///
 /// <param name="ID"> Идентификатор. Не должен быть null.</param>
 /// <param name="coordinateSystem"> Система координат. Не должна быть null.</param>
 ///
 /// <exception cref="ArgumentNullException">
 /// Вызывается при передаче null.
 /// </exception>
 public Body(string ID, CoordinateSystem coordinateSystem) :
     this(ID, coordinateSystem.Vector, coordinateSystem.Basis,
          coordinateSystem.Vector, coordinateSystem.ReferenceSystem)
 {
 }