update providers to allow 1..n representations (#489)

This commit is contained in:
Tom Kralidis
2020-07-13 06:28:11 -04:00
committed by GitHub
parent 3938420dc2
commit 28157426f5
19 changed files with 714 additions and 559 deletions
+10 -8
View File
@@ -111,10 +111,11 @@ The following methods are options to connect the plugin to pygeoapi:
.. code-block:: yaml
provider:
name: MyCoolData
data: /path/to/file
id_field: stn_id
providers:
- type: feature
name: MyCoolData
data: /path/to/file
id_field: stn_id
**Option 2**: implement outside of pygeoapi and add to configuration (recommended)
@@ -126,10 +127,11 @@ The following methods are options to connect the plugin to pygeoapi:
.. code-block:: yaml
provider:
name: mycooldatapackage.mycooldata.MyCoolDataProvider
data: /path/to/file
id_field: stn_id
providers:
- type: feature
name: mycooldatapackage.mycooldata.MyCoolDataProvider
data: /path/to/file
id_field: stn_id
Example: custom pygeoapi formatter
----------------------------------