Skip to content

normalize CoverageJSON media type - #2477

Merged
tomkralidis merged 1 commit into
masterfrom
covjson-media-type
Nov 1, 2026
Merged

tomkralidis merged 1 commit into
masterfrom
covjson-media-type

Conversation

@tomkralidis

@tomkralidis tomkralidis commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Overview

This PR normalizes CoverageJSON media type to application/vnd.cov+json as per 21-069r2, Clause 10, which also fixes the "JSON" link in the EDR HTML query template (thanks to @6a6d74 for reporting).

Related Issue / discussion

None

Additional information

None

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

@tomkralidis tomkralidis added this to the 0.25.0 milestone Oct 31, 2026
@tomkralidis tomkralidis added the OGC API - Environmental Data Retrieval OGC API - Environmental Data Retrieval label Oct 31, 2026
@github-actions github-actions Bot added the Human generated Label for the detect-ai workflow classifier label Oct 31, 2026
@tomkralidis
tomkralidis requested a review from a team October 31, 2026 14:01
@pvgenuchten

Copy link
Copy Markdown
Contributor

PR looks good
Just wondering if one can also request this mediatype as response format via accept header?

@tomkralidis

Copy link
Copy Markdown
Member Author

PR looks good Just wondering if one can also request this mediatype as response format via accept header?

Thanks @pvgenuchten. Yes; testing the below locally worked as expected:

curl "https://example.org/api/collections/msc-weather-forecast/position?coords=POINT(-75%2045)" -H "Accept: text/html"
curl "https://example.org/api/collections/msc-weather-forecast/position?coords=POINT(-75%2045)" -H "Accept: application/vnd.cov+json"

@tomkralidis
tomkralidis merged commit ed4da5a into master Nov 1, 2026
11 checks passed
@tomkralidis
tomkralidis deleted the covjson-media-type branch November 1, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Human generated Label for the detect-ai workflow classifier OGC API - Environmental Data Retrieval OGC API - Environmental Data Retrieval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants