【文件属性】:
文件名称:python-topojson:编码拓扑的GeoJSON扩展的Python端口
文件大小:15KB
文件格式:ZIP
更新时间:2021-05-21 14:23:18
Python
PYTHON-TOPOJSON
端口,最初由移植,使用与原始端口相同的BSD许可证进行许可。
安装:
pip install git+https://github.com/osgn/python-topojson.git
当前用法:
输入可以是文件状对象,文件路径或字典,输出可以是路径或文件状对象,如果省略,则返回字典
当前测试的选项是quantization和simplify 。
from topojson import topojson
#give it a path in and out
topojson ( inPath , outPath , quantization = 1e6 , simplify = 0.0001 )
也可以走另一条路。
from topojson import geojson
geojson ( topojson , input_nam
【文件预览】:
python-topojson-master
----setup.py(431B)
----.gitignore(27B)
----src()
--------__init__.py(58B)
--------geojson()
--------topojson()
----LICENSE(1KB)
----README.md(1KB)