将纬度经度坐标转换为图像地图坐标
我几乎肯定这个问题已经得到了解答;但是,无法找到它,因为 XY 坐标由于其相对定义而过载。
我试图找到/弄清楚的是如何获取纬度/经度坐标(例如 12.121212、-12.323232)并进行转换,以便它们可以映射到二维平面,例如图像地图上的点。
有没有人解决了这个问题并知道他们可以向我指出的脚本或其他问题?
理想情况下,我正在寻找 JavaScript 或 .Net 的解决方案;然而,可以同样地转换算法。
I'm almost positive this has been answered already; however, unable to find it since XY coordinates are overloaded due to their relative definition.
What I am trying to find/figure out is how to take latitude/longitude coordinates (e.g. 12.121212, -12.323232) and convert such so they can be mapped onto a 2-dimensional plane such as a point on an image map.
Has anyone solved this issue and know of a script or another SO question that they can point me to?
Ideally I'm seeking a solution in either JavaScript or .Net; however, can convert algorithms just the same.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信您正在寻找类似墨卡托投影的东西。
有些相关,但方向相反:
http://answers.yahoo.com/question/index?qid=20080521142713AAnlVtI
还填充了信息:
http://msdn.microsoft.com/en-us/library/bb259689.aspx
I believe you are looking for something like the Mercator projection.
Somewhat related, but going the opposite direction:
http://answers.yahoo.com/question/index?qid=20080521142713AAnlVtI
Also filled with information:
http://msdn.microsoft.com/en-us/library/bb259689.aspx
这种操作称为“投影”。您需要知道要投影到的坐标系的标识。这里有很多神秘的传说。
看到这个。
https://gis.stackexchange.com/questions/11560/将纬度和经度转换为北纬和东纬
This operation is called "projection." You need to know the identity of the coordinate system you want to project into. There is a lot of arcane lore here.
See this.
https://gis.stackexchange.com/questions/11560/convert-latitude-and-longitude-into-northings-and-eastings