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

Figure out appropriate STAC metadata for block shapes and dtype #10

Open
TomAugspurger opened this issue Mar 5, 2021 · 2 comments
Open

Comments

@TomAugspurger
Copy link
Collaborator

Right now stac_vrt requires two external pieces of information: the data type and block shapes:

>>> vrt = stac_vrt.build_vrt(stac_items, data_type="Byte", block_width=512, block_height=512)

which eventually make up the GDAL data_type and BlockXWidth and BlockYWidth in the VRT. Presumably these can come from a STAC extension.

@TomAugspurger
Copy link
Collaborator Author

@matthewhanson
Copy link
Member

If data_type is provided that's great, but if not, I think the asset should be queried for it's data type. It would be a shame if the file extension is required.

For the block size, it's optional, and there is no extension for which this is included. But I'm also not clear on how this is used. For the underlying assets the block size makes sense as it represents how the data is actually stored. But in a VRT it's just referencing other files so what would setting it to a different block size do? What if you have multiple files with different block sizes?

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

2 participants