转换的东/北向使用NetTopologySuite纬度/经度 [英] Convert eastings/northings to latitude/longitude using NetTopologySuite

查看:1272
本文介绍了转换的东/北向使用NetTopologySuite纬度/经度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一堆的东/北进的坐标,使用的 UTM惯例,据我可以告诉 - 所以基本上,他们是笛卡尔坐标 - 我想转换为纬度和经度



NetTopologySuite 可以帮助我这个,但是我无法在其上找到太多的文档。



任何人都得到一些指点让我开始?



编辑:东进北向和竟然是,具体而言,OS栅格参考的东和北向的问题,并约定其周围的这里讨论。<​​/ p>

解决方案

要回答我自己问题,东进与北进的竟然是条例调查(OS)的人,为其转换为纬度和经度是相当明确的。



这很好页面由克里斯·俯伏讨论的主要算法和常见的陷阱。他提出了一个JavaScript的算法,但我发现了一个C#等价的在这个论坛



由于克里斯俯伏指出,该算法得到你的经度和纬度,但在OSGB36基准。通常,你会再想将其转换成的WGS84 / GRS80基准比较常用的(否则你就可达120m出,英国位置)。为此你需要一个赫尔默特改造,由克里斯这里



编辑:克里斯俯伏的代码是GNU的 LGPL许可证


I have a bunch of Eastings/Northings coordinates, using the UTM convention as far as I can tell - so basically, they are cartesian coordinates - that I would like to convert to Latitude and Longitude.

Presumably NetTopologySuite can help me with this, but I can't find much documentation on it.

Anyone got some pointers to get me started?

Edit: The Eastings and Northings turned out to be, specifically, OS Grid Reference Eastings and Northings, the issues and conventions around which are discussed here.

解决方案

To answer my own question, the Eastings and Northings turned out to be Ordinance Survey (OS) ones, for which the conversion to Latitude and Longitude is quite well defined.

This very good page by Chris Veness discusses the main algorithm and common pitfalls. He presents a Javascript algorithm but I found a C# equivalent in this forum.

As Chris Veness points out, that algorithm gets you to Latitude and Longitude, but on the OSGB36 datum. Usually, you will then want to convert that to the WGS84/GRS80 datum more commonly used (otherwise you'll be up to 120m out, for UK locations). For that you need a Helmert transformation, as described by Chris here.

edit: Chris Veness's code is licensed under the GNU LGPL license.

这篇关于转换的东/北向使用NetTopologySuite纬度/经度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆