-
Notifications
You must be signed in to change notification settings - Fork 179
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 valid IANA or proper unregistered media type for Item Spec type attribute #251
Comments
change recommended media type for geotiff and cog wordsmith media type description replace use of 'MIME type' with 'Media type'
Has been merged. |
[puts pedant hat on] https://serialseb.com/blog/2011/02/01/minting-new-internet-media-type-identifiers/ has some opinions on not using the From a consumer point of view, I want (need) to be able to distinguish between GeoTIFFs (which might be COGs?) and GeoTIFFs that are explicitly stated to be COGs. However, my pedantic side wants to use the same media type for both with some alternative way to distinguish between them ( With those in mind, my updated proposal is:
By using a #308 is related, as it means that I can look for a "primary" |
The problem again is that we don't have anything registered for geotiff or cogs. Your linked article is a bit confusing in this regard. It says:
The conclusion in the article:
Why? There is no real explanation. GeoTiff and COGs are no registered standard and the media types are not registered either. Isn't |
Exactly.
My read is that the post's point is that
No, I think my deeper hesitation about @philvarner's media types is that we'd essentially be squatting on types intended for more general-purpose use without opening that discussion up wider. |
Okay, I get your point. We actually got in contact with OGC and @rouault a month ago on the STAC Gitter and asked about their plans regarding registering a media type for GeoTiff. The answer basically was that OGCs efforts to standardize GeoTiff and register a media type started years ago and are only moving forward slowly. Afterwards, I opened an issue opengeospatial/geotiff#34, but never got a response. So it seems there is no guideline for us and we need to go our own way. |
Has been implemented in 0.6, so changing the milestone and closing. |
The "dev" version of the Item Spec has as valid entries for the
type
attribute these two entries:I believe we should replace these either or both of (1) a valid IANA type and/or (2) a properly-defined unregistered type, until a point at which the IANA has actually accepted the recommended one above.
I believe the best option is allow both, as:
image/tiff is the mime type that
file
returns for a GeoTIFF. Placingx.
in front of the type is the correct way to define an unregistered type.+cog
looks nice, but+cog
is not a valid subtype like+json
is, and even if a subtype were registered, the full name would be inverted, e.g.,image/cog+tiff
, as the less-narrow type is tiff.The
image/tiff
spec has anapplication
parameter which was originally intended to help fax machines render images, which could possibly be repurposed. However, the valid values for this parameter are also part of a standard, so putting an arbitrary value likegeotiff
orcog
in it would be a violation of that spec.The text was updated successfully, but these errors were encountered: