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

Use same format handling in collection coverage as elsewhere #1412

Conversation

totycro
Copy link
Contributor

@totycro totycro commented Nov 29, 2023

Overview

Related Issue / Discussion

This now fixes the issue that the Accept header wasn't considered for format selection.

This adds netcdf as a known mime type in order to be able to test this, but also for actual clients to use.

Note that if we want to allow other mime types such as application/x-grib2, we also have to add them to FORMAT_TYPES.

Fixes #1390

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

This now fixes the issue that the `Accept` header wasn't considered for
format selection.

This adds netcdf as a known mime type in order to be able to test this,
but also for actual clients to use.

Note that if we want to allow other mime types such as `application/x-grib2`,
we also have to add them to `FORMAT_TYPES`.

Fixes geopython#1390
@tomkralidis tomkralidis merged commit d25d0cf into geopython:master Dec 16, 2023
2 checks passed
@totycro totycro deleted the 1390-consider-accept-header-in-get-collection-coverage branch December 18, 2023 12:19
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.

OGC API coverages - get_collection_coverage only recognizes the f query parameter
2 participants