Skip to content

Reader resampling_method has no effect #646

Answered by vincentsarago
DanSchoppe asked this question in Q&A
Discussion options

You must be logged in to vote

Ooo I think I know what's going on 😬

when we are doing reprojection (using WarpedVRT) we are creating a VRT which is aligned with the bounds (This is to make sure we fetch the overviews)

vrt_transform, vrt_width, vrt_height = get_vrt_transform(
src_dst,
bounds,
height=height,
width=width,
dst_crs=dst_crs,
)

Because the VRT will be of the same size as the desired output, there will be no downscaling/upscaling happening there

resampling=io_resampling,

which is why the resampling_method will have no effect 😭

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
3 replies
@DanSchoppe
Comment options

@DanSchoppe
Comment options

@vincentsarago

This comment has been hidden.

Comment options

You must be logged in to vote
5 replies
@vincentsarago
Comment options

Answer selected by DanSchoppe
@vincentsarago
Comment options

@DanSchoppe
Comment options

@vincentsarago
Comment options

@DanSchoppe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #645 on October 16, 2023 21:48.