简体   繁体   English

将GPS坐标转换为3D模型

[英]Converting GPS coordinates into 3D model

As the question says, I am looking to use GPS coordinates (say from Google maps) to build a 3D model (a road). 正如问题所说,我希望使用GPS坐标(例如来自Google地图)来构建3D模型(道路)。

So it should work as follows: You go to Google maps and select a route (this can be between 2 points or a circuit). 所以它应该如下工作:你去谷歌地图并选择一个路线(这可能是2点或电路之间)。 You then get the lat long coordinates for this route. 然后,您将获得此路线的纬度长坐标。

Using this data, you then feed it into a program that generates a height map of the coordinates as obtained from Google maps. 然后使用此数据将其提供给程序,该程序生成从Google地图获取的坐标高度图。

I am trying to make a demo in C# (XNA) that you can quickly generate a course of your neighbourhood for a driving sim (as long as I get the main road sections right its ok, wont be able to add detailed characteristics of the road eg a ditch next to the road or small bumps in the actual road surface). 我正在尝试在C#(XNA)中制作一个演示版,您可以快速生成一个附近的驾驶模拟课程(只要我的主要道路部分正确,它将无法添加道路的详细特征例如,道路旁边的沟渠或实际路面上的小沟槽)。

Does anyone have any ideas on where I would even start with a problem like this (tried Google already but the best I could find was here ) 有没有人有任何想法,我甚至可以从这样的问题开始(尝试谷歌已经,但我能找到的最好的是在这里

A starting point could be to look at the Dotspatial libraries for .NET: http://dotspatial.codeplex.com/ 一个起点可能是查看.NET的Dotspatial库: http ://dotspatial.codeplex.com/

I have used these libraries, but mainly to gather GPS coordinates from an external device. 我使用过这些库,但主要是从外部设备收集GPS坐标。 I haven't used these coordinates on a map for instance. 例如,我没有在地图上使用这些坐标。 The documentation is limited, but if you pry around you might be able to find some info. 文档是有限的,但如果你撬开你可能会找到一些信息。

GPS coordinates (latitude, longitude, altitude) uses a speherical 3D modell. GPS坐标(纬度,经度,高度)使用球形 3D模型。 What you want is a transformation to a cartesian 3D Model. 你想要的是转变为笛卡尔 3D模型。

For this case you can convert them into ECEF coordinates, this then are ax,y,z coordinates 对于这种情况,您可以将它们转换为ECEF坐标,然后是ax,y,z坐标

For ECEF overview see ECEF 对于ECEF概述,请参阅ECEF

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM