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
add Validate function #6
Conversation
Conflicts: README.rst rio_cogeo/__init__.py
@vincentsarago @perrygeo test coverage of the validation code is low, but it installs and it works. We should start using it in the great migration. |
@sgillies right now the validate function is missing the part to validate if the overview are tiled: rasterio/rasterio#1375 I'd love to get this before merging the validate method |
Oh right, I was only looking at the top comment, which referred to #1305 (closed). I'll fix that. |
Update: this will be possible when rasterio/rasterio#1504 is done ;-) |
I think there is a solution here to check if the overview are tiled by using the solution mentioned by @sgillies in https://rasterio.groups.io/g/dev/topic/26793684#15 rasterio.open("example.tif", OVERVIEW_LEVEL=0) as src:
src.is_tiled or src.block_shapes |
This pr adds a
validate
method which is a strict copy of https://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples/validate_cloud_optimized_geotiff.pyNote: This won't work until rasterio/rasterio#1375 get merged