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

cog mediatype at iana #13

Closed
pvgenuchten opened this issue Jan 17, 2022 · 5 comments
Closed

cog mediatype at iana #13

pvgenuchten opened this issue Jan 17, 2022 · 5 comments

Comments

@pvgenuchten
Copy link

Has there been any discussion on the use of a dedicated mediatype for COG?

Does it make sense to have a dedicated mediatype, or is it better to tag COG files as regular image/tiff files?

If relevant, are there initiatives to register the cog mediatype at iana?

Question comes from the catalogue world, which wants to reference COG files from metadata records indicating the proper mediatype.

@vincentsarago
Copy link
Member

It should be image/tiff; application=geotiff; profile=cloud-optimized

Not sure where it comes from exactly but this has been discussed quite some time ago. FYI it's the one used in STAC https://github.com/stac-utils/pystac/blob/main/pystac/media_type.py#L7

I'm not sure if this was ever registered to Iana. maybe @cholmes knows

@pvgenuchten
Copy link
Author

Thanx @vincentsarago, doesit make sense to add this aspect to the specification document?

@vincentsarago
Copy link
Member

would be a nice addition yes

@rouault
Copy link
Collaborator

rouault commented Jan 17, 2022

I would point this discussion is redundant with opengeospatial/CloudOptimizedGeoTIFF#1 and should maybe be closed in favor of it. The addition of new keys is apparently a no-go for IANA since you can only use keys that were foreseen in the image/tiff registration, but profile might be a special case due to another spec.

@pvgenuchten
Copy link
Author

pvgenuchten commented Jan 17, 2022

While reading those threads; my impression is that:

  • the tiff mediatype as defined at iana does not allow to add alternative parameters then application, so the convention to use profile=cloud-optized is not correct
  • suggestion by @EmDevys to replace application=geotiff; profile=cloud-optimized for application=geotiff+cog makes sense
  • using a dedicated parameter to differentiate geotiff from tiff can not be registered as such at iana (use of the application parameter is implicit to the image/tiff definition)

+1 to close this issue, and continue on the remote thread

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

3 participants