MapItem.cs 1018 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace DW5S.KxcApi
  7. {
  8. /// <summary>
  9. /// 对应地图上一个点
  10. /// </summary>
  11. public class MapDot
  12. {
  13. public MapDot() { }
  14. public MapDot(double lon, double lat, double alt)
  15. {
  16. this.Lon = lon;
  17. this.Lat = lat;
  18. this.Alt = alt;
  19. }
  20. public double Lon { get; set; }
  21. public double Lat { get; set; }
  22. public double Alt { get; set; }
  23. }
  24. public class ErrDistanceMapPoints
  25. {
  26. public double ErrDistance { get; set; }//单位m
  27. public string ErrDistanceKm => $"{ErrDistance / 1e3}km";
  28. public List<(double lon, double lat)> MapDots { get; set; } = new List<(double lon, double lat)>();
  29. }
  30. public class MapSatInfo
  31. {
  32. public int? SatCode { get; set; }
  33. public double SatLon { get; set; }
  34. public double SatLat { get; set; }
  35. }
  36. }