PyOGC
PyOGC is a Python package that provides a simple and consistent interface for working with OGC (Open Geospatial Consortium) services such as WMS, WFS, WCS, and Tiling Services.
PyOGC is built using modern Python development tools and practices, including Poetry for package management and Pytest for testing. It is designed to be easy to install and use, and to provide clear and comprehensive documentation.
Installation
pip install PyOGC
Usage
from PyOGC import landing
data = landing.metadata()
print(data)
Here is an example of how to use PyOGC to retrieve a tile matrix set:
from PyOGC.TilingSchemes.schemes import TilesAPI
api = TilesAPI()
# Get all available tile matrix sets
tile_matrix_sets = api.get_tile_matrix_sets()
print(tile_matrix_sets)
# Get a specific tile matrix set
tile_matrix_set = api.get_tile_matrix_set("CDB1GlobalGrid")
print(tile_matrix_set)
Development
If you want to contribute to PyOGC or modify it to suit your needs, you can get started with the following steps:
Clone the repository:
git clone <https://github.com/your_username/PyOGC.git>
Change into the directory:
cd PyOGC
Create a new virtual environment:
python3 -m venv venv
Activate the virtual environment:
source venv/bin/activate
Install PyOGC and its dependencies:
poetry install
Once you have installed PyOGC, you can run the tests to make sure everything is working as expected:
poetry run pytest
If you want to modify the tests or add new tests, you can find them in the tests directory. You can also run individual tests by specifying the test file and the test name:
poetry run pytest tests/test_ogc.py::test_get_capabilities
Support++
This project needs your shiny star ⭐.
Don't forget to leave a star ⭐️
Contributors
Made with ❤ by Anvansh (@RyanWalker277)
Metadata
Release files for PyOGC 0.0.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 | Provenance | Actions |
|---|---|---|---|---|
| PyOGC-0.0.3.tar.gz | 16.7 kB | Without provenance | Details for PyOGC-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PyOGC-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for PyOGC-0.0.3-py3-none-any.whl |
Total release size: 34.3 kB
Release files / PyOGC-0.0.3.tar.gz
| Download URL | PyOGC-0.0.3.tar.gz |
|---|---|
| Size | 16.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6854bf7da33b9cce33a97b71adf6079a5f91b51c3e8dfc110611f4d91dacd133
|
|
BLAKE2b-256 checksum How to use checksums |
c724bf6196db752c7a1e4323edffe7dff2176f697d7228e8c010cb42198cab1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / PyOGC-0.0.3-py3-none-any.whl
| Download URL | PyOGC-0.0.3-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b5ccf70084a75283bbaf89a81044ff5d15d8910ee17b3143abc06611a26c07a5
|
|
BLAKE2b-256 checksum How to use checksums |
408c3efb2d1bf539d4124a385f005fec2b9d3e9d7e74e90b6027fde3cffb77ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Security for PyOGC 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.