如何使 kml 数据看起来像谷歌地图?

发布于 2024-08-26 07:34:41 字数 164 浏览 3 评论 0原文

我有一个程序可以生成 .shp 文件,并将其导出为 kml 文件。我希望能够在谷歌地球或谷歌地球 API 中使用标准谷歌地图“地图”样式(灰色背景、黄色街道等)显示我的输出。

有我应该使用的风格指南或方法吗?

任何想法表示赞赏 - 我不知道如何构建这个问题。

谢谢。

I have a program that generates a .shp file, and exports this as a kml file. I would like to be able to display my output using the standard google map 'map' style (gray background, yellow streets, etc) in google earth, or in the google earth api.

Is there a style guide or method that I should be using?

Any thoughts appreciated - I wasn't sure how to structure this question.

Thank you.

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

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

发布评论

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

评论(3

一梦等七年七年为一梦 2024-09-02 07:34:41

这是一个模仿 Google 道路风格的 ArcGIS 风格。
http://conversationswithmyself.com/181/

Here is an ArcGIS style that will mimic the Google roads style.
http://conversationswithmyself.com/181/

暮凉 2024-09-02 07:34:41

那么,您可以使用 API 将 KML 文件加载到 Google 地图中:

http: //code.google.com/apis/maps/documentation/services.html#XML_Overlays

它肯定看起来像 Google 地图:-)

如果您绝对需要 Google 内部可视化的数据,那么对您没有多大帮助地球虽然。

Well, you can load KML files into Google Maps using the API:

http://code.google.com/apis/maps/documentation/services.html#XML_Overlays

It'll certainly look like Google Maps then :-)

Doesn't help you much if you absolutely need the data visualised inside Google Earth though.

云朵有点甜 2024-09-02 07:34:41

您可以在 KML 中定义样式,然后将它们应用到线条。我不认为有任何预定义的样式看起来像谷歌地图中的道路。

如果您在导出到 KML 之前在 ArcGIS 中定义外观,那么这不会在 Google Earth 中设置外观吗?

You can define styles in the KML and then apply them to the lines. I don't think there's any predefined styles that look like roads in google maps.

If you define the appearance in ArcGIS before exporting to KML, doesn't that set the appearance in Google Earth?

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