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

Investigate possibility of only using GDALRasterIO without warping in some cases #4

Closed
kb173 opened this issue Mar 2, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@kb173
Copy link
Member

kb173 commented Mar 2, 2020

GDALRasterIO takes image size and offset. It doesn't offer things like different types of interpolation, but in situations where this isn't required, we may be able to translate geocoordinates into pixel coordinates and use those in GDALRasterIO, skipping all the GDALWarp.

This is especially relevant for very large (e.g. 10x10 km) tiles which don't require any interpolation, but should be as fast as possible.

@kb173
Copy link
Member Author

kb173 commented Mar 26, 2020

This is largely done with bb065db. However, different types of interpolation aren't yet reimplemented without GDALWarp, and there are some hacky things annotated with TODO/FIXME. Once this is done, the no-warp branch will be merged back.

@kb173
Copy link
Member Author

kb173 commented Mar 27, 2020

The no-warp branch is now merged, so this is done!

Of course, this also means that all incoming data has to be in the same projection now. The reproject_to_webmercator function will be exposed to Godot to make this easier. (see #18)

@kb173 kb173 closed this as completed Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant