You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: workshop/content/docs/publishing/ogcapi-edr.md
+30-25Lines changed: 30 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,41 +65,46 @@ Let's try publishing some ICOADS data via the EDR xarray plugin. The sample ICOA
65
65
66
66
Save the configuration and restart Docker Compose. Navigate to <http://localhost:5000/collections> to evaluate whether the new dataset has been published.
67
67
68
-
At first glance, the `icoads-sst` collection appears as a normal OGC API - Coverages collection. Let's look a bit closer at the collection description:
68
+
At first glance, the `icoads-sst` collection appears as a normal OGC API - Coverages collection. Look a bit closer at the collection description, and notice
69
+
that there is a `parameter_names' key that describes EDR parameter names for the collection queries.
69
70
70
-
#Client access
71
+
### OWSLib - Advanced
71
72
72
-
!!! question "Interact with OGC API - Environmental Data Retrieval via Python requests"
73
+
[OWSLib](https://owslib.readthedocs.io) is a Python library to interact with OGC Web Services and supports a number of OGC APIs including OGC API - Environmental Data Retrieval.
74
+
75
+
!!! question "Interact with OGC API - Environmental Data Retrieval via OWSLib"
73
76
74
77
If you do not have Python installed, consider running this exercise in a Docker container. See the [Setup Chapter](../setup.md#using-docker-for-python-clients).
75
78
76
79
<div class="termy">
77
80
```bash
78
-
pip3 install requests
79
-
```
81
+
pip3 install owslib
82
+
```
80
83
</div>
81
84
85
+
Then start a Python console session with: `python3` (stop the session by typing `exit()`).
82
86
83
-
Currently there is limited client support for EDR. The example below provides a generic workflow using the [Python requests library](https://requests.readthedocs.io):
0 commit comments