从geotag-x导入结果
geokey-geotagx的Python项目详细描述
地理键geotagx
从GeoTag-X导入结果。
安装
GeoKey GeoTagX需要:
- python 2.7版
- GeoKey版本0.9、0.10或1.0
从pypi安装扩展:
pip install geokey-geotagx
或者从克隆存储库:
cd geokey-geotagx
pip install -e .
将软件包添加到已安装的应用程序:
INSTALLED_APPS += (
...
'geokey_geotagx',
)
你现在可以走了!
测试
运行测试:
python manage.py test geokey_geotagx
检查代码覆盖范围:
coverage run --source=geokey_geotagx manage.py test geokey_geotagx
coverage report -m --omit=*/tests/*,*/migrations/*
api
要在功能集合后导入结果:
POST /api/geotagx/:project_id/import/
Content-Type: application/json
{
"type": "FeatureCollection",
"features": []
}
返回(如果成功):
HTTP/1.1 201 Created
Objects created