Converting Latitude Longitude Coordinates to Image Map Coordinates

做~自己de王妃 提交于 2020-01-30 03:30:36

问题


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.


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/8175265/converting-latitude-longitude-coordinates-to-image-map-coordinates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!