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

Only render tiled GeoTIFFs #7

Open
mojodna opened this issue Dec 25, 2018 · 0 comments
Open

Only render tiled GeoTIFFs #7

mojodna opened this issue Dec 25, 2018 · 0 comments

Comments

@mojodna
Copy link
Owner

mojodna commented Dec 25, 2018

Check src.driver == "GTiff", src.profile["tiled"] == True, src.profile["blockxsize"] == src.profile["blockysize"].

This will prevent an excessive number of reads due to pixels laid out in strips vs. blocks or non-GeoTIFF formats (that may require full reads). It will accept non-COGs, as long as the layouts are conducive to partial reads.

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

No branches or pull requests

1 participant