This presentation available at pygeoapi.io/presentations/ogc-stack-winter-school-2022
This video available at youtube.com/watch?v=3LRMg3lP3-0
python3 -m venv pygeoapi
cd pygeoapi
. bin/activate
git clone https://github.com/geopython/pygeoapi.git
cd pygeoapi
pip3 install -r requirements.txt
python3 setup.py install
cp pygeoapi-config.yml example-config.yml
vi example-config.yml # edit as required
export PYGEOAPI_CONFIG=example-config.yml
export PYGEOAPI_OPENAPI=example-openapi.yml
pygeoapi openapi generate $PYGEOAPI_CONFIG --output-file $PYGEOAPI_OPENAPI
pygeoapi serve
# in another terminal
curl http://localhost:5000 # or open in a web browser
Elasticsearch | PostgreSQL/PostGIS | CSV | Spatialite | GeoJSON |
* also via GDAL/OGR Provider
xarray | rasterio |
minio | ZXY directory tree |
MapServer/MapScript | WMS Facade |
Elasticsearch | TinyDB |
Welcome Joana Simoes, Ph.D (@doublebyte)
Welcome Ben Webb (@webb-ben)
flask_app.py
and starlette_app.py
urls.py
with routesviews.py
with the binding of pygeoapi core API into the process of Request/Responsesettings.py
with the pygeoapi configuration path--django
option to the cli command to serve the usual Django server
resources:
naturalearth/10m-cultural-vectors/admin_0_countries:
...
naturalearth/10m-physical-vectors/coastline:
...
docs.pygeoapi.io/en/latest/configuration.html#hierarchical-collections
Numerous deployment options
SCRIPT_NAME
environment variable@tomkralidis @JMendesDeJesus @normanbarker @perrygeo @justb4 @pvgenuchten @tzotsos @alpha-beta-soup @francbartoli @doublebyte @webb-ben