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

Update get_maximum_overview_level to use Rasterio dataset directly #64

Closed
vincentsarago opened this issue Mar 25, 2019 · 0 comments · Fixed by #65
Closed

Update get_maximum_overview_level to use Rasterio dataset directly #64

vincentsarago opened this issue Mar 25, 2019 · 0 comments · Fixed by #65

Comments

@vincentsarago
Copy link
Member

in

if overview_level is None:
overview_level = get_maximum_overview_level(
src_path, min(int(dst_kwargs["blockxsize"]), int(dst_kwargs["blockysize"]))
)

we pass the dataset path and then open it in get_maximum_overview_level function. This means we have to open the dataset twice while it's not really necessary

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

Successfully merging a pull request may close this issue.

1 participant