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

Mime/Content Type? #53

Open
rcoup opened this issue Jun 22, 2022 · 3 comments
Open

Mime/Content Type? #53

rcoup opened this issue Jun 22, 2022 · 3 comments

Comments

@rcoup
Copy link

rcoup commented Jun 22, 2022

Are there any thoughts/conventions for MIME/Content-Type values for COPC files?

Maybe application/vnd.laszip; profile=copc ?

Related issues for COGTIFF: cogeotiff/cog-spec#13 opengeospatial/CloudOptimizedGeoTIFF#1

@hobu
Copy link
Contributor

hobu commented Jun 22, 2022

For planetary computer, we went with

application/vnd.laszip+copc

The rationale was to follow GeoJSON's registration. Profile certainly makes sense too though.

I didn't have a strong opinion on the topic. If someone does, please put forward the rationale for one form or another. I don't understand the intricacies of IANA registrations, as they've always seemed a bit arbitrary to me.

@rcoup
Copy link
Author

rcoup commented Jun 22, 2022

application/vnd.laszip+copc seems sane enough to me 👍

I don't understand the intricacies of IANA registrations, as they've always seemed a bit arbitrary to me.

Agreed!

@m-mohr
Copy link
Contributor

m-mohr commented Jul 1, 2022

As it has the vnd. prefix, it is fine as it is, I think and I'll also use it in STAC Browser now.

But just a short remark here if that is meant to go through IANA at any time: Usually they do <sub-format>+<format>, so e.g. geo+json or in this case copc+(vnd.)laszip. So if you try to parse such things, you'd look for the primary format in the part after the +, which would now be copy instead of laszip. So it might be worth thinking about switching the order.
Although I'm also not 100% sure whether this would then result in application/copc+vnd.laszip or application/vnd.copc+laszip. I hope it would be application/copc+vnd.laszip.

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