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

Make buffer for read! an AbstractArray #411

Merged
merged 2 commits into from
Feb 2, 2024

Conversation

felixcremer
Copy link
Contributor

This widens the dispatch of the read! and rasterio! functions so that the buffer can be an AbstractArray instead of a normal Array. This will allow to also read into for example views or other array wrapper types like PermuteDimsArrays.

This would close #410.
It will also close rafaqz/Rasters.jl#596

Should we also widen the buffer type for the write! functions?

@felixcremer
Copy link
Contributor Author

felixcremer commented Feb 1, 2024

The failure on Julia nightly is due to a change in Julia Base removing length from Iterators.Stateful which is already reported in DiskArrays see meggart/DiskArrays.jl#142.

Copy link
Owner

@yeesian yeesian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this, adding the tests and investigating the failures!

@yeesian yeesian merged commit 0f76a51 into yeesian:master Feb 2, 2024
9 of 13 checks passed
@felixcremer felixcremer deleted the fc/abstractread branch April 9, 2024 19:14
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

Successfully merging this pull request may close these issues.

Can't plot Raster based on ArchGDAL overview Type of buffer in read! is too restricted
2 participants