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

align OACov to latest specification updates #1548

Merged
merged 5 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
with:
python-version: 3.8
architecture: x64
cache: 'pip'
- name: Checkout pygeoapi
uses: actions/checkout@master
- name: Install flake8
Expand Down
6 changes: 2 additions & 4 deletions docs/source/data-publishing/ogcapi-coverages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,8 @@ Data access examples
* http://localhost:5000/collections
* overview of dataset
* http://localhost:5000/collections/foo
* coverage rangetype
* http://localhost:5000/collections/foo/coverage/rangetype
* coverage domainset
* http://localhost:5000/collections/foo/coverage/domainset
* schema of dataset
* http://localhost:5000/collections/foo/schema
* coverage access via CoverageJSON (default)
* http://localhost:5000/collections/foo/coverage?f=json
* coverage access via native format (as defined in ``provider.format.name``)
Expand Down
13 changes: 8 additions & 5 deletions docs/source/plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,15 @@ The below template provides a minimal example (let's call the file ``mycoolraste
super().__init__(provider_def)
self.num_bands = 4
self.axes = ['Lat', 'Long']
self.fields = self.get_fields()

def get_coverage_domainset(self):
# return a CIS JSON DomainSet

def get_coverage_rangetype(self):
# return a CIS JSON RangeType
def get_fields(self):
# generate a JSON Schema of coverage band metadata
return {
'b1': {
'type': 'number'
}
}

def query(self, bands=[], subsets={}, format_='json', **kwargs):
# process bands and subsets parameters
Expand Down
15 changes: 4 additions & 11 deletions docs/source/tour.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,19 +117,12 @@ Delete an item from a collection:
Raster data
-----------

Collection coverage domainset
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Collection coverage schema
^^^^^^^^^^^^^^^^^^^^^^^^^^

This page provides information on a collection coverage spatial properties and axis information.
This page provides information on a collection coverage information.

http://localhost:5000/collections/gdps-temperature/coverage/domainset

Collection coverage rangetype
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This page provides information on a collection coverage rangetype (bands) information.

http://localhost:5000/collections/gdps-temperature/coverage/rangetype
http://localhost:5000/collections/gdps-temperature/schema

Collection coverage data
^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
Loading
Loading