The list below lists some relevant classes. It is not exhaustive.
ogc/core.py: defines interface and to some extent implements:ogc.OGCclass: necessary functions to support an ogc server, but not specific to any WSGI/ASGI server (e.g. Flask). Return values are native python objects (strings for xml, io.BytesIO for binary) when possible rather than something specific to a web framework like Flask
ogc/__init__.pyogc.GridCoordinatesclass: Used to represent footprint of WMS/WCS coverages/layers in relevant CRS.ogc.Layerclass: Necesary properties/functions for a single WMS/WCS coverage/layer offeringogc.Styleclass: Used for styling or coloring WMS layers and storing metadata
ogc/podpac.py: PODPAC implementations of:podpac.OGCclass:podpac.GridCoordinatesclass:podpac.Layerclass:
ogc/servers.py: implementations of OGC server in specific WSGI/ASGI web frameworks (e.g. Flask, FastAPI). These will all wrapogc.OGCclass.ogc/app.py: An example server app.
- Check out this repository, then from the commandline:
pip install podpac[datatype]
pip install -e .An example app is located in the example directory. To run it:
cd <root of repository>
cd example
python app.py
# Go to URL displayed on console