Norman Barker 957df9b844 Swagger gen (#10)
* initial swagger gen

* removed support for html returns

* geojson configuration

* working swagger ui

* config rename

* observation example

* missing call in csv driver

* pr comments
2018-03-07 16:44:04 -05:00
2018-03-07 16:44:04 -05:00
2018-03-07 16:44:04 -05:00
2018-03-07 13:08:55 -07:00
2018-02-14 21:46:28 -05:00
2018-03-07 16:44:04 -05:00
2018-02-14 21:46:28 -05:00
2018-02-14 21:54:31 -05:00
2018-03-07 16:44:04 -05:00
2018-03-07 16:44:04 -05:00
2018-02-14 21:54:31 -05:00
2018-03-07 16:44:04 -05:00
2018-03-05 02:51:40 +00:00

pygeoapi

pygeoapi provides an API to geospatial data

Installation

virtualenv -p python3 pygeoapi
cd pygeoapi
. bin/activate
git clone https://github.com/geopython/pygeoapi.git
cd pygeoapi
pip3 install -r requirements.txt
pip3 install -r requirements-dev.txt
pip3 install -e .
cp openapi/wfs/0.0.1/pygeoapi-openapi.yml local.swagger.yml
cp pygeoapi-config.yml local.config.yml
python flask_app.py

Edit local.config.yml and local.swagger.yml

Example requests

Try the swagger ui at http://localhost:5000/ui

or

# feature collection metadata
curl http://localhost:5000/
curl http://localhost:5000/api
curl http://localhost:5000/obs
curl http://localhost:5000/obs/371
S
Description
pygeoapi is a Python server implementation of the OGC API suite of standards. The project emerged as part of the next generation OGC API efforts in 2018 and provides the capability for organizations to deploy a RESTful OGC API endpoint using OpenAPI, GeoJSON, and HTML. pygeoapi is open source and released under an MIT license.
Readme 50 MiB
Languages
nesC 76.3%
Python 22.3%
HTML 1.3%