如何将 TLE 信息转换为经度、纬度和海拔高度以显示在 Bing 地图上?
我正在使用 OrbitTools 库来开发卫星跟踪系统,使用类似于 < a href="http://karhukoti.com" rel="nofollow noreferrer">http://karhukoti.com。
我在这个领域并不了解,也缺乏很多与卫星跟踪相关的信息,但我已经开始自学,因为这个特定的项目被我的导师选为毕业项目。
然而,我遇到了很多困难,其中一个主要的困难是如何将两线元素(TLE)信息转换为经纬度和高度以在地图上显示卫星和卫星路径。
我尝试了以下 C# 代码:
protected void DisplaySatellitePath(List<Eci> Pos)
{
MapLayer myRouteLayer = new MapLayer();
myMap.Children.Add(myRouteLayer);
foreach (Eci e in Pos)
{
CoordGeo coordinates = e.toGeo();
Ellipse point = new Ellipse();
point.Width = 10;
point.Height = 10;
point.Fill = new SolidColorBrush(Colors.Orange);
point.Opacity = 0.65;
//Location location = new Location(e.Position.X, e.Position.X);
Location location = new Location(coordinates.Latitude, coordinates.Longitude);
MapLayer.SetPosition(point, location);
MapLayer.SetPositionOrigin(point, PositionOrigin.Center);
myRouteLayer.Children.Add(point);
}
}
还尝试了
protected void DisplaySatellitePathSecondGo(List<Eci> Pos)
{
MapLayer myRouteLayer = new MapLayer();
myMap.Children.Add(myRouteLayer);
foreach (Eci e in Pos)
{
Ellipse point = new Ellipse();
point.Width = 10;
point.Height = 10;
point.Fill = new SolidColorBrush(Colors.Yellow);
point.Opacity = 0.65;
Site siteEquator = new Site(e.Position.X, e.Position.Y, e.Position.Z);
Location location = new Location(siteEquator.Latitude, siteEquator.Longitude);
MapLayer.SetPosition(point, location);
MapLayer.SetPositionOrigin(point, PositionOrigin.Center);
myRouteLayer.Children.Add(point);
}
}
您能告诉我我在这里做错了什么吗?我在网上搜索了有关 OrbitTools 的示例或文档,但没有成功。
我真的希望使用这个库的人可以帮助我或建议一个更好的 .NET 库。
非常感谢。
I am using the OrbitTools library to develop a satellite tracking system using the Bing Maps Silverlight control similar to http://karhukoti.com.
I am not knowledgeable in this domain and lack a lot of the information related to satellite tracking but have started teaching myself as this particular project was chosen by my supervisor as a graduation project.
However, i faced numerous difficulties, a major one is how to convert Two Line Elements (TLE) information to longitude latitude and altitude to display the satellite and satellite path on the map.
I tried the following C# code:
protected void DisplaySatellitePath(List<Eci> Pos)
{
MapLayer myRouteLayer = new MapLayer();
myMap.Children.Add(myRouteLayer);
foreach (Eci e in Pos)
{
CoordGeo coordinates = e.toGeo();
Ellipse point = new Ellipse();
point.Width = 10;
point.Height = 10;
point.Fill = new SolidColorBrush(Colors.Orange);
point.Opacity = 0.65;
//Location location = new Location(e.Position.X, e.Position.X);
Location location = new Location(coordinates.Latitude, coordinates.Longitude);
MapLayer.SetPosition(point, location);
MapLayer.SetPositionOrigin(point, PositionOrigin.Center);
myRouteLayer.Children.Add(point);
}
}
and also tried
protected void DisplaySatellitePathSecondGo(List<Eci> Pos)
{
MapLayer myRouteLayer = new MapLayer();
myMap.Children.Add(myRouteLayer);
foreach (Eci e in Pos)
{
Ellipse point = new Ellipse();
point.Width = 10;
point.Height = 10;
point.Fill = new SolidColorBrush(Colors.Yellow);
point.Opacity = 0.65;
Site siteEquator = new Site(e.Position.X, e.Position.Y, e.Position.Z);
Location location = new Location(siteEquator.Latitude, siteEquator.Longitude);
MapLayer.SetPosition(point, location);
MapLayer.SetPositionOrigin(point, PositionOrigin.Center);
myRouteLayer.Children.Add(point);
}
}
Can you please tell me what i'm doing wrong here? I searched the net for examples or documention about OrbitTools but with no luck.
I really hope that someone using this library could help me or suggest a better .NET library.
Thank you very much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这仍然是你所苦苦挣扎的事情吗?当我拉下代码时,我注意到他们有一个与库一起提供的演示。他们在其中展示了以下方法,我相信您一定已经看过:
static void PrintPosVel(Tle tle)
{
轨道 轨道 = new Orbit(tle);
ArrayList Pos = new ArrayList();
在这方面,他们似乎正在进行您正在寻找的转换。我是否遗漏了您实际遇到的问题是什么?
Is this still something you are struggling with? I noticed when I pulled down the code that they have a demo that they provide along with the library. In it they show the following method which I'm sure you must have looked at:
static void PrintPosVel(Tle tle)
{
Orbit orbit = new Orbit(tle);
ArrayList Pos = new ArrayList();
In this it seems that they are making the conversion that you are looking for. Am I missing something as to what the problem is that you are actually having?