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

EDR CoverageJSON conformance fixes: time axis and demo data #1814

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

pzaborowski
Copy link
Contributor

Overview

changes to confirm to https://schemas.opengis.net/covjson/1.0/coveragejson.json

  • time axis changed to values (was interval)
  • time axis first in range as expected by https://github.com/Reading-eScience-Centre/leaflet-coverage and dependancies
  • parameter description as object - worked with JS visualisation but not validator and covjson playground
  • range dataType as float (was number and allowed are float, integer, string) - worked with JS visualisation but not validator and covjson playground

Other:

  • typo in edr/query.html template causing issues with first parameter layer

Changes shall solve issues using https://covjson.org libraries, also on pygeoapi demo site.

Related Issue / discussion

#1782

Additional information

changes is not fully backward compatible with potential non-standard client using time as interval (which is breaking coveragejson-schema).

In addition to code changes, coads_sst.nc is fixed. Demo file had COADSX shifted west but not data which looks like this:
image

Dependency policy (RFC2)

  • I have ensured that this PR meets RFC2 requirements

Updates to public demo

Contributions and licensing

(as per https://github.com/geopython/pygeoapi/blob/master/CONTRIBUTING.md#contributions-and-licensing)

  • I'd like to contribute [feature X|bugfix Y|docs|something else] to pygeoapi. I confirm that my contributions to pygeoapi will be compatible with the pygeoapi license guidelines at the time of contribution
  • I have already previously agreed to the pygeoapi Contributions and Licensing Guidelines

pzaborowski and others added 13 commits August 12, 2024 11:32
Reading from query bbox and reversing the order would not work anyway if not followed by reversing data (which is not cheap and would not do on default. It is visible on the sample data tests/data/coads_sst.nc where the start-stop swapping turn the data upside down.
there is no sense in reading it from source file once again
1. time axis shall be 't' in covjson, for backward compliance it can be set with 'time_axis_covjson' provider variable. if time_axis_covjson is not set the value is read from time_field which has default value read from the source file.
2. time axis is now list of values according to specification and it is now properly rendered on the html view of the query
3. typo in query.html to fix error with first layer being not generated
1.integrated changes from axis fix
2. dataType is float according to schema https://schemas.opengis.net/covjson/1.0/coveragejson.json (number is not valid, float, integer, string are)
3. parameter description as object according to schema https://schemas.opengis.net/covjson/1.0/coveragejson.json
coards_sst.nc data was shifted around 180 deg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant