Skip to main content

Unified OGC Api Python Client

Project description

PyOGC

GitHub issues GitHub forks GitHub stars GitHub license Open Source Love svg1 PRs Welcome contributions welcome GitHub contributors

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 ⭐️

forthebadge made-with-python forthebadge

Contributors

Made with ❤ by Anvansh (@RyanWalker277)

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

PyOGC-0.0.3.tar.gz (16.7 kB view hashes)

Uploaded Source

Built Distribution

PyOGC-0.0.3-py3-none-any.whl (17.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page