下载 Google 地球“灰色建筑”型号
我需要使用某些地方的 3D 模型。 Google 地球有 3D 建筑图层,其中包含“灰色建筑”。这正是我所需要的。有什么方法可以获取所使用的 3d 模型吗?有 Google Earth API(除了 Javascript 的东西)吗? (我在 .net 工作)这会有帮助吗?
或者至少有一个手动解决方案如何将这些模型导入 SketchUp 中?
多谢!
I need to work with the 3d model of some places. Google Earth has the 3d building layer with "Gray Buildings" in it. This would be exactly what I would require. Is there any way to get the 3d models that are used? Is there a Google Earth API (other than the Javascript stuff)? (I'm working in .net) that would help?
Or is there at least a manual solution how I can get these models, say, into Sketchup?
Thanks a lot!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
虽然仍然不支持从 Google 的 API 获取构建几何图形,但 OpenStreetMaps 确实公开了一些您可以使用的数据。请在此处查看本指南:
http://wiki.flightgear.org/OpenStreetMap_buildings
请求
发出类似Will return 的 包含建筑物基本轮廓和(在某些情况下)高度的 XML。您可以使用此信息来挤出一些非常简单的建筑物: https://i.sstatic.net/266tj.png
为了填写缺失的高度值(大多数建筑物都缺失),我尝试使用建筑物占地面积来确定它与附近建筑物相比的高度。不幸的是,在谷歌能够公开他们的模型之前,这将是必须要做的。
While there still isn't support for getting building geometry from Google's APIs, OpenStreetMaps does expose some data you can use. Check out this guide here:
http://wiki.flightgear.org/OpenStreetMap_buildings
Making a request like
Will return an XML with building's base outlines and (in some cases) heights. You can use this info to extrude some very simple buildings: https://i.sstatic.net/266tj.png
To fill in the missing height values (and they're missing on most buildings), I try to use the area of the building's footprint to determine how tall it might be compared to nearby buildings. Unfortunately, until Google is able to make their models public, this will have to do.
目前无法从 Google Earth 中下载模型。此外,即使存在 - 提取数据也违反了 TOS。许多模型来自政府或私人来源,因此整个数据的许可存在问题。但值得注意的是,Google 地球中的许多模型都位于 Sketch up 3dwarehouse 上,因此也许你可以从那里得到你想要的数据?
另外,要使用托管代码中的 javascript api,您可能需要检查我整理的这个控件库。虽然控件本身可能不适用,但它们背后的想法应该可以帮助您开始。 http://code.google.com/p/winforms-geplugin-control- Library/ 本质上有一系列包装器和帮助器,可让您将插件无缝集成到 winforms 应用程序中。
您还可以在此处阅读有关 3d 城市(开发低分辨率建筑图层的项目名称)的更多信息:http://sketchup.google.com/3dwh/citiesin3d/
There is currently no way to download models from within Google Earth. Also, even is there was - extracting data is against the TOS. Many of the models come from government or private sources so there are issues with licencing the data as a whole. It is worth noting however that a lot of the models in Google Earth are located on the Sketch up 3dwarehouse so maybe you could get that data you want from there?
Also, to work with the javascript api from managed code you might want to check this control library I have put together. Whilst the controls themselves may not be applicable, the ideas behind them should get you under way. http://code.google.com/p/winforms-geplugin-control-library/ essentially there are a series of wrappers and helpers that let you seamlessly integrate the plugin into a winforms application.
You can also read more about Cities in 3d (the name of the project that developed the low-res building layer) here: http://sketchup.google.com/3dwh/citiesin3d/