使用 Google Earth API 找到最高点?

发布于 2024-12-21 13:37:37 字数 111 浏览 4 评论 0原文

我需要找出一个区域的最高点。

然而,当我迭代所有点时,对于我的 CPU 来说效率不够高。

那么Google Earth API是否提供了相关的方法呢?

谢谢 !

I needed to find out the highest point of a region.

However when I iterate through all the points isn't efficient enough for a my CPU.

So does Google Earth API provide any relevant approach ?

Thanks !

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

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

发布评论

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

评论(3

属性 2024-12-28 13:37:37

没有看到 Google Earth API 提供任何相关内容,但您可以添加海拔作为参数来减少结果,并给它一个增量,直到结果的计数可以接受。

Did not see Google Earth API provides anything about this, but you may add elevation as a parameter to reduce results, and give it an increment until the result's count is acceptable.

深居我梦 2024-12-28 13:37:37

由于这一点不经常改变,所以我只使用一个常数。

'Mount Everest (WGS84)
highest_lat = 27.988056
highest_lon = 86.925278

Since this point doesn't change often, I would just use a constant.

'Mount Everest (WGS84)
highest_lat = 27.988056
highest_lon = 86.925278
恏ㄋ傷疤忘ㄋ疼 2024-12-28 13:37:37

如果没有看到任何代码,就不可能说出开销在哪里。不过,一般来说,您应该使用 google.earth.executeBatch 方法将多次调用传递给 api。

https://developers.google.com/earth/documentation/reference/google_earth_namespace#ab26414915202d39cad12bcd5bd99e739

此方法可以有效地执行任意用户定义的函数,从而最大限度地减少跨进程期间产生的开销网络浏览器和 Google 地球插件之间的通信。

以下是一个有效示例

http://earth-api-samples。 googlecode.com/svn/trunk/examples/batch.html

Without seeing any code it is impossible to say where the overhead is. However, in general, you should pass your multiple calls to the api using the google.earth.executeBatch method.

https://developers.google.com/earth/documentation/reference/google_earth_namespace#ab26414915202d39cad12bcd5bd99e739

This method efficiently executes an arbitrary, user-defined function minimizing the amount of overhead incurred during cross-process communication between the web browser and Google Earth Plugin.

Here is a working example

http://earth-api-samples.googlecode.com/svn/trunk/examples/batch.html

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