一个python库,提供将地理关联从lambertie/lambert93系统转换为wgs84的函数。
geolambert的Python项目详细描述
geolambert python
geolambert python是一个python库,它提供用于转换 从Lambertie/Lambert93系统到WGS84的地理相关性 IGN算法。c代码(lambert.c,lambert.h)来自yageek/lambert。
网址:https://github.com/chengs/geolambert-python/
使用量
>>> from geolambert import lambert93_to_wgs84, lambertIIe_to_wgs84 >>> lambert93_to_wgs84(668832.5384, 6950138.7285) (2.5686536326051743, 49.649610985851474) >>> lambertIIe_to_wgs84(73150, 2396665) (-4.780198557157784, 48.354052821116824)
安装
依赖关系
geolambert python需要:
- Python(>;=2.7或>;=3.3)
对于开发,cython>;=0.26.1是必需的。
用户安装
使用pip
安装geolambert pythonpip install geolambert
从源代码安装geolambert python
git clone https://github.com/chengs/geolambert-python/ cd geolambert-python python setup.py install
或者使用Cython使用编译代码安装
python setup.py install --cython