Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
RasterRegionReproject is a touchy algorithm. Specifically, there is a mock scanline generation algorithm that takes place using a pretty weird geometric intersection algorithm. It is unfortunately useful for speeding up the computation of sampling points, so we're stuck with it. The problem is that the determination of bounds for converting these geometric line segments into a pixel range appears to be numerically touchy. I'm proposing a slight change to the numerical fudge factors that make the process work, but I understand that this is suspicious, and will possibly cause problems depending on the projection of the input points.
We can try to finesse this PR to do something more elegant and more correct through the review process.
Signed-off-by: jpolchlo [email protected]
Checklist
docs/CHANGELOG.rst
updated, if necessarydocs
guides update, if necessary