将英国国家电网(OSBG36)转换为LAT Lon(WGS84),反之亦然。
bng-latlon的Python项目详细描述
包括
安装
从pypi获得最新的稳定版本:
pip install bng_latlon
用法
>>> from bng_to_latlon import OSGB36toWGS84 >>> OSGB36toWGS84(538890, 177320) (51.47779538331092, -0.0014016837826672265) ... >>> from latlon_to_bng import WGS84toOSGB36 >>> WGS84toOSGB36(51.4778, -0.0014) (538890.1053365842, 177320.49650700082)
待办事项
- 通知开发人员,共享
- 公共可导入常量和独立的util函数(helmut transform…)
- cli接受文件名或值对作为参数