forked from geopython/pygeoapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement OGC EDR API (geopython#658)
* implement OGC EDR API * add docs/tests * fix tests
- Loading branch information
1 parent
5d82de5
commit b26280d
Showing
21 changed files
with
830 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
.. _ogcapi-edr: | ||
|
||
Publishing data to OGC API - Environmental Data Retrieval | ||
========================================================= | ||
|
||
The `OGC Environmental Data Retrieval (EDR) (API)`_ provides a family of | ||
lightweight query interfaces to access spatio-temporal data resources. | ||
|
||
To add spatio-temporal data to pygeoapi for EDR query interfaces, you | ||
can use the dataset example in :ref:`configuration` as a baseline and | ||
modify accordingly. | ||
|
||
Providers | ||
--------- | ||
|
||
pygeoapi core EDR providers are listed below, along with a matrix of supported query | ||
parameters. | ||
|
||
.. csv-table:: | ||
:header: Provider, coords, parameter-name, datetime | ||
:align: left | ||
|
||
xarray-edr,✅,✅,✅ | ||
|
||
|
||
Below are specific connection examples based on supported providers. | ||
|
||
Connection examples | ||
------------------- | ||
|
||
xarray-edr | ||
^^^^^^^^^^ | ||
|
||
The `xarray-edr`_ provider plugin reads and extracts `NetCDF`_ and `Zarr`_ data via `xarray`_. | ||
|
||
.. code-block:: yaml | ||
providers: | ||
- type: edr | ||
name: xarray-edr | ||
data: tests/data/coads_sst.nc | ||
# optionally specify x/y/time fields, else provider will attempt | ||
# to derive automagically | ||
x_field: lat | ||
x_field: lon | ||
time_field: time | ||
format: | ||
name: netcdf | ||
mimetype: application/x-netcdf | ||
providers: | ||
- type: edr | ||
name: xarray-edr | ||
data: tests/data/analysed_sst.zarr | ||
format: | ||
name: zarr | ||
mimetype: application/zip | ||
.. note:: | ||
|
||
`Zarr`_ files are directories with files and subdirectories. Therefore | ||
a zip file is returned upon request for said format. | ||
|
||
Data access examples | ||
-------------------- | ||
|
||
- list all collections | ||
- http://localhost:5000/collections | ||
- overview of dataset | ||
- http://localhost:5000/collections/foo | ||
- dataset position query | ||
- http://localhost:5000/collections/foo/position?coords=POINT(-75%2045) | ||
- dataset position query for a specific parameter | ||
- http://localhost:5000/collections/foo/position?coords=POINT(-75%2045)¶meter-name=SST | ||
- dataset position query for a specific parameter and time step | ||
- http://localhost:5000/collections/foo/position?coords=POINT(-75%2045)¶meter-name=SST&datetime=2000-01-16 | ||
|
||
|
||
.. _`xarray`: https://xarray.pydata.org | ||
.. _`NetCDF`: https://en.wikipedia.org/wiki/NetCDF | ||
.. _`Zarr`: https://zarr.readthedocs.io/en/stable | ||
|
||
|
||
.. _`OGC Environmental Data Retrieval (EDR) (API)`: https://github.com/opengeospatial/ogcapi-coverages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.