MapItem.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace XdDw.App.DTO
  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. /// <summary>
  25. /// 对应地图上一条曲线(由多个点组成)
  26. /// </summary>
  27. public class MapLine
  28. {
  29. public List<MapDot> Line { get; set; } = new List<MapDot>();
  30. }
  31. public class ErrDistanceMapPoints
  32. {
  33. public double ErrDistance { get; set; }//单位m
  34. public string ErrDistanceKm => $"{ErrDistance / 1e3}km";
  35. public List<MapDot> MapDots { get; set; } = new List<MapDot>();
  36. }
  37. public class SatInfo
  38. {
  39. public int? SatCode { get; set; }
  40. public double SatLon { get; set; }
  41. public double SatLat { get; set; }
  42. }
  43. }