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

add Validate function #6

Merged
merged 16 commits into from Mar 14, 2019
Merged

add Validate function #6

merged 16 commits into from Mar 14, 2019

Conversation

vincentsarago
Copy link
Member

@vincentsarago vincentsarago commented Apr 4, 2018

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.py

Note: This won't work until rasterio/rasterio#1375 get merged

rio_cogeo/cogeo.py Outdated Show resolved Hide resolved
rio_cogeo/cogeo.py Outdated Show resolved Hide resolved
@vincentsarago vincentsarago changed the base branch from first to master June 13, 2018 17:45
Conflicts:
	README.rst
	rio_cogeo/__init__.py
@sgillies
Copy link
Contributor

sgillies commented Oct 4, 2018

@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.

@vincentsarago
Copy link
Member Author

@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

@sgillies
Copy link
Contributor

sgillies commented Oct 4, 2018

Oh right, I was only looking at the top comment, which referred to #1305 (closed). I'll fix that.

@vincentsarago
Copy link
Member Author

Update: this will be possible when rasterio/rasterio#1504 is done ;-)

@perrygeo perrygeo removed their assignment Dec 4, 2018
@vincentsarago
Copy link
Member Author

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

@vincentsarago vincentsarago changed the title [Experiment] add Validate function add Validate function Mar 14, 2019
@vincentsarago vincentsarago merged commit a6b76c7 into master Mar 14, 2019
@vincentsarago vincentsarago mentioned this pull request Mar 14, 2019
@vincentsarago vincentsarago deleted the validate branch March 14, 2019 03:29
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 this pull request may close these issues.

None yet

3 participants