-
Notifications
You must be signed in to change notification settings - Fork 0
7.8.1: Re-introduce aoi argument to Reader::tile() to support clipped tiles
#5
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -153,7 +153,13 @@ def read( | |
| "dtype": src_dst.dtypes[0], | ||
| } | ||
|
|
||
| if nodata is not None: | ||
| if nodata is None: | ||
| vrt_params.update( | ||
| { | ||
| "init_dest_nodata": False | ||
| } | ||
| ) | ||
| else: | ||
|
Comment on lines
+156
to
+162
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a new change that adds VRT option Important context: This change is necessary to accommodate COGs that contain an internal per-dataset mask. Without this change, when I would request a raster tile via TiTiler, GDAL was throwing an error: (NOTE: this was an actual thrown exception from rasterio/GDAL that resulted in failed tile requests, not a warning. I can't explain why the error message seems to incorrectly assert that it's a warning.) It was surprising to me that
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CC @vincentsarago. Curious if this makes sense to you, and if it's perhaps a desirable upstream change to rio-tiler for future versions of GDAL — as mentioned in the above comment, this is perhaps an issue thanks to the bleeding-edge build of GDAL I am running against. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not fully sure to understand the change maybe something changed in GDAL and rasterio is not yet up to date for it 🤷 |
||
| vrt_params.update( | ||
| { | ||
| "nodata": nodata, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.