在 Google Earth 中绘制考虑到地球曲率的线

发布于 2024-08-29 10:40:32 字数 60 浏览 11 评论 0原文

我想画一些遵循经度或纬度的线,但它没有考虑地球的曲率。

我该怎么做呢?我正在使用 KML。

I want to draw some lines that would follow either the longitude or latitude, but it doesn't take the globe's curvature in account.

How would I go about doing that? I'm using KML.

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

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

发布评论

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

评论(3

难忘№最初的完美 2024-09-05 10:40:32

在 KML 中,如果您希望线路夹在地面上,那么您可以将 'altitudeModeEnum' 设置为 'clampToGround' 并设置为 1(true。就像这样。

<LineString id="myLine">
  <tessellate>1</tessellate>
  <altitudeMode>clampToGround</altitudeMode>
</LineString>

In KML if you mean you want the line to clamp to the ground then you would set 'altitudeModeEnum' to 'clampToGround' and testate to 1 (true. Like so.

<LineString id="myLine">
  <tessellate>1</tessellate>
  <altitudeMode>clampToGround</altitudeMode>
</LineString>
画骨成沙 2024-09-05 10:40:32

使用Gdal绘制线条图层,并使用ogr2​​gor(同站点)将图层转换为kml

Use Gdal to draw the line layer, and ogr2gor (same site) to convert the layer into kml

妄想挽回 2024-09-05 10:40:32

您应该尝试用许多顶点来打破直线,这样每个顶点都有一个高度。请参阅这里

You should try to break the line up with many vertices, so each one has an altitude. See here

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