Skip to content

Media type for CoverageJSON #135

Closed
Closed

Description

@jonblower

I think this has been discussed elsewhere but I can't find the link at the moment.

At the moment we use the media type application/prs.coverage+json. I'm not sure the prs prefix (which means "personal" or "vanity" project) is appropriate. The STAC best practices suggests that a vnd prefix (for "publicly-accessible but vendor produced") is appropriate. Note that a "vendor" can be a consortium or non-profit entity, according to Wikipedia.

Maybe this is a wider OGC issue, although as a Community Standard I don't know where CoverageJSON would stand.

If we did change this, I'm not sure what the implication would be for implementations. Maybe there are not many implementations that depend on the MIME type?

Thoughts @chris-little, @letmaik, @ghobona ?

Activity

  1. jonblower commented on Oct 10, 2022

    @jonblower
    ContributorAuthor

    Just to note that the EDR API makes a reference to the current CoverageJSON media type - see https://docs.ogc.org/is/19-086r5/19-086r5.html#toc15. Need to bear this in mind if we consider a change.

  2. jonblower commented on Oct 19, 2022

    @jonblower
    ContributorAuthor

    Some precedents:

    • GeoJSON media type is application/geo+json
    • JSON-LD media type is application/ld+json
    • JSON-FG is using application/vnd.ogc.fg+json as a preliminary media type "until this Standard is stable to avoid confusing future implementations accessing JSON documents from draft versions of this Standard."
  3. chris-little commented on Oct 19, 2022

    @chris-little
    Contributor

    @jonblower I have emailed @ogcscotts for any OGC Policy for a preferred media type.

  4. ogcscotts commented on Oct 19, 2022

    @ogcscotts
    Contributor

    @chris-little @jonblower OGC would prefer not to use the "vnd" prefix because the specification is published and used and if a Community Standard, then we'd like it to be treated like our other Standards (GeoPackage, GML, etc.).

  5. chris-little commented on Oct 19, 2022

    @chris-little
    Contributor

    @ogcscotts So does that suggest that the media type should be something like application/covjson+json ?

    • GeoPackage: application/geopackage+sqlite3
    • GML: `application/gml+xml'
  6. ogcscotts commented on Oct 19, 2022

    @ogcscotts
    Contributor

    @chris-little I think that pattern would be best

  7. letmaik commented on Oct 19, 2022

    @letmaik
    Contributor

    @ogcscotts I don't think application/covjson+json makes sense. If anything, then application/coverage+json, but getting there will take a bit longer.

  8. ogcscotts commented on Oct 19, 2022

    @ogcscotts
    Contributor

    @letmaik there are examples of both styles in IANA. Another OGC Community Standard (CityJSON) follows the pattern you suggest (city+json). I expect that coverage+json could become a little contentious if CIS-JSON is to move forward.

  9. letmaik commented on Oct 19, 2022

    @letmaik
    Contributor

    @ogcscotts Good point. Well, there's always application/cov+json or application/cis+json, depending on who gets coverage. I think it's too early for that though.
    Is OGC objecting vnd completely, or just vnd.ogc? Maybe application/vnd.coverage+json or application/vnd.cov+json is possible. The latter may be more future-proof to avoid conflict with CIS, and could eventually become application/cov+json.

  10. ogcscotts commented on Oct 19, 2022

    @ogcscotts
    Contributor

    @letmaik the vnd pattern would be fine. I think the idea of using vnd now and looking toward a change in registration later is good.

  11. chris-little commented on Nov 2, 2022

    @chris-little
    Contributor

    @letmaik @ogcscotts The CoverageJSON Task Team discussed this on 2022-11-02 and unless other views expressed, application/vnd.cov+json proposed for publication as a comunity standard rather than the existing application/prs.coverage+json. Then later, with implementaton evidence, move to application/cov+json.

  12. chris-little commented on Nov 16, 2022

    @chris-little
    Contributor

    @jonblower @letmaik @ogcscotts This consensus implemented by PR#141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions