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
python3 setup.py build
python3 setup.py install
via pip:
pip3 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
python3 setup.py test
# manually
cd tests
python3 run_tests.py
Development
Setting up a Development Environment
Same as installing a package. Use a virtualenv. Also install developer requirements:
pip3 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
python3 setup.py sdist bdist_wheel --universal
twine upload dist/*
Code Conventions
Bugs and Issues
All bugs, enhancements and issues are managed on GitHub.
Contact
Metadata
Release files for geolinks 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| geolinks-0.2.3.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| geolinks-0.2.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 10.6 kB
Release files / geolinks-0.2.3.tar.gz
| Download URL | geolinks-0.2.3.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1aacd55d0c0c349cbc8319b2eea70e98dbe34be688c7be14248fbbba0c7cf54e
|
|
BLAKE2b-256 checksum How to use checksums |
750cde75f08a42d9d2cc677ab88fd32d422c75552ec4beaf2f0c1dedc634d66c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.12
|
Release files / geolinks-0.2.3-py2.py3-none-any.whl
| Download URL | geolinks-0.2.3-py2.py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
1cedb20282613ec44805e0af13dda7ce43c20e16a7aca4c7e02cdedfcbbec971
|
|
BLAKE2b-256 checksum How to use checksums |
c3d29e1f852876ee70afddcc811890f822902f4087e021192209f24ec7291172
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.12
|