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

Making a coverage request to gdps-temperature with subset fails #705

Closed
MartinPontius opened this issue Jun 8, 2021 · 4 comments
Closed
Labels
bug Something isn't working
Milestone

Comments

@MartinPontius
Copy link
Contributor

Description
Making a coverage request to the test collection gdps-temperature with subset (or bbox) fails.
The problem seems to be in the metadata for this collection in the default config file pygeoapi-config.yml.

By changing GRIB2 to GRIB in the below part of pygeoapi-config.yml, the problem seems to be fixed.

        providers:
            - type: coverage
              name: rasterio
              data: tests/data/CMC_glb_TMP_TGL_2_latlon.15x.15_2020081000_P000.grib2
              options:
                  DATA_ENCODING: COMPLEX_PACKING
              format:
                  name: GRIB2
                  mimetype: application/x-grib2

Steps to Reproduce

  1. Follow the installation instructions in the (documentation).
  2. Make a request: http://localhost:5000/collections/gdps-temperature/coverage?subset=Lat(40:50),Long(10:20)

This will produce the following error:

... rasterio.errors.DriverRegistrationError: ('No such driver registered: %s', b'GRIB2')

Expected behavior
Get a response containing the data subset.

Screenshots/Tracebacks

Environment

  • OS: Ubuntu
  • Python version: Python 3.6.9
  • pygeoapi version: latest commit (4bc929e), version 0.11.dev0

Additional context
I use rasterio version 1.2.2.

@MartinPontius MartinPontius added the bug Something isn't working label Jun 8, 2021
tomkralidis added a commit to tomkralidis/pygeoapi that referenced this issue Jun 9, 2021
@tomkralidis tomkralidis added this to the 0.11.0 milestone Jun 9, 2021
@tomkralidis
Copy link
Member

@MartinPontius thanks for the report. This should be fixed in master. Can you verify?

@MartinPontius
Copy link
Contributor Author

Making the request http://localhost:5000/collections/gdps-temperature/coverage?subset=Lat(40:50),Long(10:20) in my browser I get a new error now: { "code": "InvalidParameterValue", "description": "Invalid format: html" }
However, the same request works in Postman and returns the expected coverage json.

@tomkralidis
Copy link
Member

@MartinPontius can you try again (cc @GeoSander)?

@MartinPontius
Copy link
Contributor Author

I tried again, now everything works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants