Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SensorThings API EDR Provider #1928

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 35 additions & 1 deletion docs/source/data-publishing/ogcapi-edr.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,22 @@ Providers
---------

pygeoapi core EDR providers are listed below, along with a matrix of supported query
webb-ben marked this conversation as resolved.
Show resolved Hide resolved
parameters.
types and query arguments.

.. csv-table::
:header: Provider, Position, Radius, Area, Cube, Trajectory, Corridor, Items, Locations, Instances
:align: left

`xarray-edr`_,✅,❌,❌,✅,❌,❌,❌,❌,❌
`SensorThingsEDR`_,❌,❌,✅,✅,❌,❌,✅,✅,❌


.. csv-table::
:header: Provider, coords, parameter-name, datetime
:align: left

`xarray-edr`_,✅,✅,✅
`SensorThingsEDR`_,✅,✅,✅


Below are specific connection examples based on supported providers.
Expand Down Expand Up @@ -90,6 +99,31 @@ The `xarray-edr`_ provider plugin reads and extracts `NetCDF`_ and `Zarr`_ data
`pyproj.CRS.from_user_input`_.


SensorThingsEDR
^^^^^^^^^^^^^^^

The SensorThings API EDR Provider for pygeaopi extends the feature provider to
produce coverageJSON representations from SenosThings repsonses. This provider relies
webb-ben marked this conversation as resolved.
Show resolved Hide resolved
on using the ObservedProperty Entity to create the `parameter-name` set.

.. code-block:: yaml

providers:
- type: edr
name: SensorThingsEDR
data: https://api.waterdata.usgs.gov/sta/v1.1/
webb-ben marked this conversation as resolved.
Show resolved Hide resolved
- type: feature
name: SensorThings
data: https://api.waterdata.usgs.gov/sta/v1.1/
entity: Things
title_field: name


.. note::
The `feature` provider must also be configured to service the `/items`
EDR query type.


Data access examples
--------------------

Expand Down
1 change: 1 addition & 0 deletions pygeoapi/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
'PostgreSQL': 'pygeoapi.provider.postgresql.PostgreSQLProvider',
'rasterio': 'pygeoapi.provider.rasterio_.RasterioProvider',
'SensorThings': 'pygeoapi.provider.sensorthings.SensorThingsProvider',
'SensorThingsEDR': 'pygeoapi.provider.sensorthings_edr.SensorThingsEDRProvider', # noqa: E501
'SQLiteGPKG': 'pygeoapi.provider.sqlite.SQLiteGPKGProvider',
'Socrata': 'pygeoapi.provider.socrata.SODAServiceProvider',
'TinyDB': 'pygeoapi.provider.tinydb_.TinyDBProvider',
Expand Down
Loading