从经纬度坐标列表计算面积
geoarea的Python项目详细描述
地理区域
这是来自geojson-area (python)的叉子。 根据经纬度坐标列表计算面积。
安装
$ pip install geoarea
用法
只需传递纬度和经度的列表
>>> from geoarea import area
>>> latitude_world = [-90, 90, 90, -90, -90]
>>> longitude_world = [-180, -180, 180, 180, -180]
>>> area(latitude_world, longitude_world)
511207893395811.06
测试
$ python test.py