Google Earth KML 包含经度大于 180 度的多边形?

发布于 2024-08-16 21:49:17 字数 183 浏览 4 评论 0原文

我在 kml 文件中使用多边形来显示火箭从地面到谷歌地球 kml 文件中轨道的飞行路径。

问题是,谷歌地球无法处理大于 180 度的经度,因此当火箭绕地球一周以上时,必须重新计算经度值。 有没有办法使用像 720deg 这样的经度并且谷歌可以自行翻译它?我更喜欢这个,因为我不必改变我的程序,你可以通过它的坐标直接看到火箭绕地球的旋转。

I use polygones in kml files for displaying a rocket's flightpath from ground into orbit in google earth kml files.

the problem is, that google earth can't handle longitued greater than 180deg, so when a rocket will circle more than ones around the globe the longitued values has to be recalculated.
Is there a way in using longitudes like 720deg and google can translate this by itself? I would prefer this, because I don'thave to change my programme and you can directly see the revolutions of the rocket around earth by its coordinates.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

烟雨扶苏 2024-08-23 21:49:17

KML 定义确实只允许

  • 使用 -180 到 180 之间的经度参数,使用
  • -90 到 90 之间的纬度参数,

请参阅 KML 参考 - 元素“坐标”

所以恐怕您需要通过引入角度函数来标准化您的 lon 。

The KML definition indeed only allows arguments

  • between -180 and 180 for longitude
  • between -90 and 90 for latitude

see KML Reference - element "coordinates"

So I am afraid you will need to normalize your lon by introducing an angle function.

月朦胧 2024-08-23 21:49:17

正如 MikeD 所提到的,您需要进行标准化以符合规范。这是 Chris Veness 的网站,其中包含用于执行大量操作的球形公式否则令人难以置信的计算。

As mentioned by MikeD you will need to normalize to fit in the specs. Here is a site from Chris Veness with spherical formulas for doing lots of calculations that otherwise boggle the mind.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文