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

Don't use approximate transformer with source_geoloc_array #3056

Conversation

DFEvans
Copy link
Contributor

@DFEvans DFEvans commented Apr 8, 2024

Fixes #3051

Using an approximate transformer alongside source_geoloc_array can lead to undesirable artefacts, presumably as it is difficult to fit an approximate function to a dense grid of points.

Disable the use of approximate transformers in this case, as they already are for RPCs.

@DFEvans DFEvans force-pushed the patch/dont_use_approximate_transformer_for_gcps branch from b2b8030 to 02c584a Compare April 8, 2024 11:31
Fixes rasterio#3051

Using an approximate transformer alongside source_geoloc_array can
lead to undesirable artefacts, presumably as it is difficult to fit
an approximate function to a dense grid of points.

Disable the use of approximate transformers in this case, as they
already are for RPCs.
@DFEvans DFEvans force-pushed the patch/dont_use_approximate_transformer_for_gcps branch from 02c584a to 27b29d4 Compare April 8, 2024 11:33
@sgillies
Copy link
Member

sgillies commented Apr 8, 2024

@DFEvans thanks! I'm 👀 on it now, re-running the failed CI jobs.

Copy link
Member

@sgillies sgillies left a comment

Choose a reason for hiding this comment

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

Beautiful! Thank you @DFEvans.

@sgillies sgillies added this to the 1.4.0 milestone Apr 8, 2024
@sgillies sgillies self-assigned this Apr 8, 2024
Copy link
Member

@snowman2 snowman2 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 @DFEvans 👍

@sgillies sgillies merged commit 672493b into rasterio:main Apr 8, 2024
16 checks passed
sgillies pushed a commit that referenced this pull request Apr 8, 2024
Fixes #3051

Using an approximate transformer alongside source_geoloc_array can
lead to undesirable artefacts, presumably as it is difficult to fit
an approximate function to a dense grid of points.

Disable the use of approximate transformers in this case, as they
already are for RPCs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

reproject with src_geoloc_array introduces unexpected shift for group of pixels
3 participants