Display changes in tile function from v1 to current #495
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
@mike-amodeo sorry about this. in ~1.x the Lines 343 to 344 in 4286e55 nearest (which is a safest choice) Line 33 in f72d57c |
Beta Was this translation helpful? Give feedback.
-
Thanks, @vincentsarago . Not a problem. But when we tried adding the |
Beta Was this translation helpful? Give feedback.
-
def reader(file, x, y, z, **kwargs):
with COGReader(file) as image:
return image.tile(x, y, z, **kwargs)
try:
img, _ = mosaic_reader(
full_paths,
reader,
int(request["x"]),
int(request["y"]),
int(request["z"]),
allowed_exceptions=(TileOutsideBounds, RasterioIOError),
resampling_method="bilinear",
)
tile = img.data[0]
mask = img.mask ☝️ should give the same result 🤞 |
Beta Was this translation helpful? Give feedback.
☝️ should give the same result 🤞