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

Any way of selecting GDALRIOResampleAlg? #140

Closed
spadarian opened this issue Jan 5, 2021 · 1 comment · Fixed by #141
Closed

Any way of selecting GDALRIOResampleAlg? #140

spadarian opened this issue Jan 5, 2021 · 1 comment · Fixed by #141

Comments

@spadarian
Copy link
Contributor

At the moment, to read a raster into a slice you are using GDALRasterIO, which doesn't provide a way to select a resampling algorithm.

If I'm not mistaken, GDALRasterIOEx has an extra option which could be used to do that.

Is there any way to pass a sampling algorithm (GDALRIOResampleAlg) to read_as or read_into_slice?

I tried to implement my own read_into_slice function but RasterBand.c_rasterband is private and I'm not sure how to proceed.

Cheers!

@jdroenner
Copy link
Member

I guess we should change the read_as and read_into_slice methods to use GDALRasterIOEx. It would be great if you could provide a PR for this. You could have a look at GdalOpenEx in dataset.rs for an example.

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 a pull request may close this issue.

2 participants