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

Pass (height, width) to "rio_tiler.utils._tile_read" instead of tile size #152

Closed
vincentsarago opened this issue Feb 26, 2020 · 0 comments · Fixed by #154
Closed

Pass (height, width) to "rio_tiler.utils._tile_read" instead of tile size #152

vincentsarago opened this issue Feb 26, 2020 · 0 comments · Fixed by #154

Comments

@vincentsarago
Copy link
Member

In

def _tile_read(
src_dst,
bounds,
tilesize,
indexes=None,
nodata=None,
resampling_method="bilinear",
tile_edge_padding=2,
dst_crs=CRS({"init": "EPSG:3857"}),
bounds_crs=None,
minimum_tile_cover=None,
warp_vrt_option={},
):

we pass the output array size with tilesize, this means the output array will be a square shape (tilesize, tilesize). By allowing (height, width) we could use _tile_read to return any part of a dataset given any bounds (square or not)

This is a breacking change for a private function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant