问题描述
希望你很好
我正在尝试使用proj.4库将经纬度坐标转换为OSGB36 x和y.
I am trying to convert lat/long coordinates to OSGB36 x and y using the proj.4 library.
还有其他人成功做到了吗?我需要填写srcPrj4String和destPrj4String变量,例如
Has anyone else successfully done this? I need to fill the srcPrj4String and destPrj4String variables, e.g.
string srcPrj4String ="+ proj = longlat + ellps = WGS84 + datum = WGS84 + no_defs";
string destPrj4String ="+ proj = utm + zone = 11 + ellps = GRS80 + datum = NAD83 + units = m";
string srcPrj4String = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs";
string destPrj4String = "+proj=utm +zone=11 +ellps=GRS80 +datum=NAD83 +units=m";
但是我不知道OSGB36应该是destPrj4String是什么-我知道基准应该是+ datum = OSGB36,但是我尝试的所有方法都不起作用
but I can't figure out the what the destPrj4String should be with OSGB36 - i know the datum should be +datum=OSGB36, but everything I try, doesn't work
有什么想法吗?
非常感谢
leddy
推荐答案
获取它:
string srcPrj4String = "+proj=longlat +ellps=WGS84 +towgs84=0,0,0 +no_defs";
string destPrj4String = "+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +towgs84=446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894 +units=m +no_defs";
欢呼!
这篇关于PROJ.4库和OSGB36的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!