使用 Google Earth API 找到最高点?
我需要找出一个区域的最高点。
然而,当我迭代所有点时,对于我的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
没有看到 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.
由于这一点不经常改变,所以我只使用一个常数。
Since this point doesn't change often, I would just use a constant.
如果没有看到任何代码,就不可能说出开销在哪里。不过,一般来说,您应该使用 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