DxMapConvertUtil.cs 566 B

1234567891011121314151617181920212223
  1. using DevExpress.XtraMap;
  2. using Ips.Library.Entity;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace Ips.Library.DxpLib
  9. {
  10. public static class DxMapConvertUtil
  11. {
  12. public static CoordPointCollection ConvertFrom(GeoLine line)
  13. {
  14. var result = new CoordPointCollection();
  15. foreach (var point in line.Points)
  16. {
  17. result.Add(new GeoPoint(point.Lat, point.Lon));
  18. }
  19. return result;
  20. }
  21. }
  22. }