Utilities to deal with geospatial links. Working implementation of the Cat-Interop work at https://github.com/OSGeo/Cat-Interop
geolinks is best installed and used within a Python virtualenv.
- Python 3 and above
- Python virtualenv package
Dependencies are listed in requirements.txt. Dependencies are automatically installed during geolinks's installation.
from source:
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
via pip:
pip3 install geolinks
geolinks link sniff 'http://host/wms?service=WMS'
>>> 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
Same as installing a package. Use a virtualenv. Also install developer requirements:
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/*
All bugs, enhancements and issues are managed on GitHub.