Unified OGC Api Python Client
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file PyOGC-0.0.3.tar.gz
.
File metadata
- Download URL: PyOGC-0.0.3.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6854bf7da33b9cce33a97b71adf6079a5f91b51c3e8dfc110611f4d91dacd133 |
|
MD5 | 67a4023bf6353a02625c9045cb5fd931 |
|
BLAKE2b-256 | c724bf6196db752c7a1e4323edffe7dff2176f697d7228e8c010cb42198cab1a |
File details
Details for the file PyOGC-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: PyOGC-0.0.3-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5ccf70084a75283bbaf89a81044ff5d15d8910ee17b3143abc06611a26c07a5 |
|
MD5 | 241fa575a54b2bd3912bc5abfd7c7e79 |
|
BLAKE2b-256 | 408c3efb2d1bf539d4124a385f005fec2b9d3e9d7e74e90b6027fde3cffb77ea |