简体   繁体   English

WGS84 坐标转换为 Lambert72 坐标

[英]WGS84 coordinates convert to Lambert72 coordinates

I'm writing a macro in VBA excel.我正在用 VBA excel 编写一个宏。 I have two sorts of data types:我有两种数据类型:

  • WGS84 coordinates WGS84坐标
  • Lambert72 coordinates兰伯特72坐标

The Lambert72 coordinates are more accurate then the WGS84 coordinates. Lambert72 坐标比 WGS84 坐标更准确。 I have to find which WGS84 coordinate is the closest to the lambert72 coordinate (for each lambert72 coordinate) OR which Lambert72 coordinate is the closest to the WGS84 coordinate (for eacht WGS84 coordinate)我必须找到哪个 WGS84 坐标最接近 Lambert72 坐标(对于每个 Lambert72 坐标)或者哪个 Lambert72 坐标最接近 WGS84 坐标(对于每个 WGS84 坐标)

So i have to convert the wgs84 to lambert72 format, or vice versa.所以我必须将 wgs84 转换为 labert72 格式,反之亦然。 Someone who has a formula for this?有人有这个公式吗? On the internet I found some online converters, but I didn't find any formula.在互联网上我找到了一些在线转换器,但我没有找到任何公式。

And then I have to find a method to find the distance between two wgs84 coordinates or two lambert72 coordinates.然后我必须找到一种方法来找到两个wgs84坐标或两个lambert72坐标之间的距离。 For lambert72 i know how to do this, these are normally in meter, and is easy to calculate.对于lambert72,我知道如何做到这一点,这些通常以米为单位,并且很容易计算。 But wgs84 are in degrees and I am not used to work with these.但是 wgs84 是度数,我不习惯使用这些。

Thank you in advance!先感谢您!

The formulas are a bit complicated, but this is what used to construct an excel sheet for those conversions: IGN - Services géodésiques公式有点复杂,但这是用于为这些转换构建 Excel 表的内容: IGN - Services géodésiques

Exploring these pages you'll find the informations needed (web pages and PDF).浏览这些页面,您将找到所需的信息(网页和 PDF)。

In short, this is the path to follow:简而言之,这是要遵循的路径:

[ BD72 datum ] Lambert 72 coordinates [ BD72数据]兰伯特72坐标

-> [BD72 datum] Geographic coordinates (Lat, Lon) (in decimal degrees) -> [BD72 基准]地理坐标 (Lat, Lon)(十进制度数)

-> [BD72 datum] Geocentric coordinates (X,Y,Z) -> [BD72 基准]地心坐标 (X,Y,Z)

-> [ WGS84 datum ] Geocentric coordinates (X,Y,Z) -> [ WGS84 数据] 地心坐标 (X,Y,Z)

-> [WGS84 datum] Geographic coordinates (Lat, Lon) (in decimal degrees) -> [WGS84 数据]地理坐标 (Lat, Lon)(十进制度数)

-> [WGS84 datum] Geographic coordinates (Lat, Lon) (in sexagesimal degrees) (ie "GPS") -> [WGS84 数据] 地理坐标 (Lat, Lon)(以六十进制表示)(即“GPS”)

(in reverse order to find Lambert 72 coordinates) (以相反的顺序找到兰伯特 72 坐标)

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

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