-
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
[Item] Asset size property (content length) #921
Comments
Sounds a bit related to the Checksum extension, I think it should start as an extension. I agree that this field can be useful for clients and users. |
The I don't think there's an existing extension that would fit here, unless we combine it with checksum and rename. It's not quite Common Metadata either, because that implies it can be an Item property (or an asset field), but this would be exclusive to assets (and possibly links), like the checksum extension. |
I agree on starting as an extension. It does seem to group well with checksum, in an 'file info' extension or something? But if checksum is in use and we don't want to change its extension then it could just be a small dedicated extension. |
We could also create a new file-info extension that includes checksums and deprecate the existing checksum extension. |
I've not seen it used very widely in public, maybe 1 or 2 collections max. I should finally start crawling collections so that we have statistics for such things... |
Writing up the CARD4L extension, I'm wondering whether there's more than just size and checksum for a fileinfo extension.
|
@emmanuelmathot (and all others reading this) Good that you like my comment ;-) Which fields would be useful for you? I'll probably write this up and I'm wondering what is actually useful for others. For example byte_order I could also define in card4l directly if that is too specific. Please name any of the fields mentioned or even additional ones. :-) Thank you! |
bytes 👌 it might be maybe overkill but knowing the header size could be really useful 🤷♂️ |
Great, I also need header size for CARD4L, so I'll just move it here. 2 use cases seems alright. |
PR #934 is up for review :-) |
Some reasons for not including the "maybe" options:
|
Wow. That was fast! That's great, thx! I have nothing more to add for now. We will implement this extension in DotNetStac with helpers to generate size or checksum for assets. |
Summary
Having a property to indicate the size of the asset
Context
It is sometimes useful to know the size of the assets referenced in the STAC item. For instance, to provision disk space or to avoid downloading the same asset doing a simple content length comparison.
Proposal
2 options
size
orcontent_length
The text was updated successfully, but these errors were encountered: