跳转到主要内容

处理地理空间链接的实用工具

项目描述

Build Status

geolinks

处理地理空间链接的实用工具。是https://github.com/OSGeo/Cat-Interop上的Cat-Interop工作的实现。

安装

geolinks最好在Python虚拟环境中安装和使用。

要求

依赖项

依赖项列在requirements.txt中。依赖项在geolinks安装过程中自动安装。

安装软件包

从源

python3 -m venv my-env
cd my-env
. bin/activate
git clone https://github.com/geopython/geolinks.git
cd geolinks
python3 setup.py build
python3 setup.py install

通过pip

pip3 install geolinks

运行

geolinks link sniff 'http://host/wms?service=WMS'

从Python中使用API

>>> from geolinks import sniff_link
>>> sniff_link('http://host/wms?service=WMS')
'OGC:WMS'
>>> sniff_link('http://host/wms?service=WPS')
'OGC:WPS'
>>> sniff_link('http://host/wms?service=CSW')
'OGC:CSW'
>>> sniff_link('http://host/data/roads.kmz')
'OGC:KML'
>>> sniff_link('http://host/data/roads.kml')
'OGC:KML'

运行测试

# via setuptools
python3 setup.py test
# manually
cd tests
python3 run_tests.py

开发

设置开发环境

与安装软件包相同。使用虚拟环境。还需要安装开发要求

pip3 install -r requirements-dev.txt

发布

vi geolinks/__init__.py
git commit -m 'update release version' geolinks/__init__.py
vi debian/changelog  # add changelog entry and summary of updates
# push changes
git push origin master
git tag -a x.y.z -m 'tagging release x.y.z'
# push tag
git push --tags
rm -fr build dist *.egg-info
python3 setup.py sdist bdist_wheel --universal
twine upload dist/*

代码约定

错误和问题

所有错误、增强和问题均在GitHub上管理。

联系方式

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解有关 安装软件包 的更多信息。

源代码分发

geolinks-0.2.3.tar.gz (5.2 kB 查看哈希值)

上传于 源代码

构建分发

geolinks-0.2.3-py2.py3-none-any.whl (5.4 kB 查看哈希值)

上传于 Python 2 Python 3

由以下支持