Utilities to deal with geospatial links
Project description
geolinks
Utilities to deal with geospatial links. Working implementation of the Cat-Interop work at https://github.com/OSGeo/Cat-Interop
Installation
geolinks is best installed and used within a Python virtualenv.
Requirements
- Python 3 and above
- Python virtualenv package
Dependencies
Dependencies are listed in requirements.txt. Dependencies are automatically installed during geolinks's installation.
Installing the Package
from source:
python3 -m venv my-env
cd my-env
. bin/activate
git clone https://github.com/geopython/geolinks.git
cd geolinks
python setup.py build
python setup.py install
via pip:
pip install geolinks
Running
geolinks link sniff 'http://host/wms?service=WMS'
Using the API from Python
>>> 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'
Running Tests
# via setuptools
python setup.py test
# manually
cd tests
python run_tests.py
Development
Setting up a Development Environment
Same as installing a package. Use a virtualenv. Also install developer requirements:
pip install -r requirements-dev.txt
Releasing
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
python setup.py sdist bdist_wheel --universal
twine upload dist/*
Code Conventions
Bugs and Issues
All bugs, enhancements and issues are managed on GitHub.
Contact
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
geolinks-0.2.1.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for geolinks-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e90bd13053c6799656b3b9380ea8e09016cae3b14168d7c88801edf5ea496968 |
|
MD5 | f0c1c7a1e42a6977caeea2d0dff47b94 |
|
BLAKE2b-256 | ff506b68f4e99dab57a27516a1a739d8e6e66f44874ffd8963fb92c55f2f3ad1 |