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

Querying EDR collections fails when first EdrParameter has no netcdf file #366

Open
mgrunbauer opened this issue Apr 18, 2024 · 0 comments

Comments

@mgrunbauer
Copy link
Collaborator

The /edr/collections endpoint fails if the data from the first configured EdrParameter is missing. The result is an HTTP 405 with the message Internal Server Error.

Querying the /edr/collections/<collection/instances/<instance>/position call directly does work.

Simplified example configuration:

<?xml version="1.0" encoding="UTF-8" ?>
<Configuration>
  <OgcApiFeatures/>
  <OgcApiEdr>
    <EdrCollection name="my_collection">
      <EdrParameter name="my_param1" unit="hPa"/>
      <EdrParameter name="my_param2" unit="C"/>
    </EdrCollection>
  </OgcApiEdr>

  <Layer type="database">
    <Name>my_param1</Name>
    (...)
  </Layer>

  <Layer type="database">
    <Name>my_param2</Name>
    (...)
  </Layer>
</Configuration>

In the above configuration, the /edr/collections call will fail if you only ingest data for my_param2.

I would expect that the /edr/collections call still works and (if possible) does not depend on the underlying data.

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

No branches or pull requests

1 participant