-
Notifications
You must be signed in to change notification settings - Fork 523
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
ENH: Add transformer_options to WarpedVRT #2195
Conversation
rasterio/_warp.pyx
Outdated
@@ -723,9 +769,11 @@ cdef class WarpedVRTReaderBase(DatasetReaderBase): | |||
dst_width=None, width=None, dst_height=None, height=None, | |||
src_transform=None, dst_transform=None, transform=None, | |||
init_dest_nodata=True, src_alpha=0, add_alpha=False, | |||
warp_mem_limit=0, dtype=None, **warp_extras): | |||
warp_mem_limit=0, dtype=None, transformer_options=None, **warp_extras): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@snowman2 I'd like to see the transformer options folded into warp_extras as we're doing with _reproject: https://github.com/mapbox/rasterio/blob/master/rasterio/_warp.pyx#L479.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That definitely simplified things and brings consistency with WarpedVRT and _reproject. The only downside is that you are not warned when the options are ignored with earlier versions of GDAL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@snowman2 thank you! I'm looking forward to 1.3.0 and even have it in my team's planning doc for the second half of the year.
Just one change I think we should make in the interest of keep usage simple.
cd12820
to
5029543
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @snowman2 !
Thanks for the review @sgillies 👍 |
Closes #2194