将 UTM (wsg84) 坐标转换为纬度和经度
我已经搜索了一段时间(显然是在此处和谷歌上)寻找一种将一组 UTM 坐标转换为纬度和经度的巧妙方法。我已经获得了坐标,并且知道它们位于哪个区域,但是如何将其转换为纬度和经度?我希望有某种类至少可以为我带来一些魔力,但似乎并非如此:(
对此有什么建议吗?
我知道这是可以做到的,因为这个转换器似乎只工作很好地理/UTM坐标转换器
: )
谢谢!
I've been searching for a while now (here and on google obviously) for a neat way to convert a set of UTM coordinates to Latitude and Longitude. I've got the coordinates and I know in what zone they are, but how do I convert this to Latitude and Longitude? I Was hoping there would be some kind of class that could do at least some of the magic for me, but it doesn't seem so :(
Any suggestions on this?
I know it can be done, as this converter seems to work just fine Geographic/UTM Coordinate Converter.
Any input is greatly appreciated! :)
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
该网站上提供了 C++ 代码:
http://www.gpsy.com/gpsinfo/geotoutm/
向下页面a点击“源代码”标题,然后在底部查找这些文件:
Chuck Gantz
Enclosures:LatLong-UTMconversion.cpp(在线查看文本文件)
LatLong-UTMconversion.h(在线查看文本文件)
UTMConversions.cpp(在线查看文本文件)
SwissGrid.cpp(在线查看文本文件)
Constants.h(在线查看文本文件)
例如第一个文件链接到:
www.gpsy.com/gpsinfo/geotoutm/gantz/LatLong-UTMconversion.cpp
等等
这里有双向功能:UTM 到 Lat Long,反之亦然。
如果你看看其他地方,有这个代码的 python 版本。
例如
在 code.google.com/p/pys60gps/source/browse/trunk/lib/LatLongUTMconversion.py?r=246
其中还有一些 C# 版本:
在 mediakey.dk/~cc/convert-northing-and-easting-utm-to-longitude-and-latitude/
祝你好运。
There is c++ code available on this website:
http://www.gpsy.com/gpsinfo/geotoutm/
Go down the page a bit to the "Source Code" heading, and look for these files at the bottom:
Chuck Gantz
Enclosures: LatLong-UTMconversion.cpp (view online as text file)
LatLong-UTMconversion.h (view online as text file)
UTMConversions.cpp (view online as text file)
SwissGrid.cpp (view online as text file)
constants.h (view online as text file)
e.g. the first file links to:
www.gpsy.com/gpsinfo/geotoutm/gantz/LatLong-UTMconversion.cpp
etc
There are functions here for going both ways: UTM to Lat Long, and vice versa.
If you look elsewhere, there are python versions of this code.
e.g.
at code.google.com/p/pys60gps/source/browse/trunk/lib/LatLongUTMconversion.py?r=246
There are also c# versions of some of it:
at mediakey.dk/~cc/convert-northing-and-easting-utm-to-longitude-and-latitude/
Good luck.
我做了一个从 javascript 库到 C# 的移植,我已经测试过它并且工作完美,你可以看看它 在这里。
I made a port from a javascript library to C#, I have tested it and works perfectly, you can take a look at it here.
在 NuGet 上查看 CooperativeSharp。用它来做到这一点真的很容易。
Checkout CoordinateSharp on NuGet. It's really easy to do this with it.
使用此代码:
此代码比其他代码准确得多。
Use this code:
This code is far more Accurate than others.
这是:
Here is:
看一下这个 .NET 库 http://projnet.codeplex.com/ 。这对你的情况应该有帮助
Take a look at this .NET library http://projnet.codeplex.com/ . This should help in your case