Replies: 2 comments
-
we do use in GDAL, the cog validation script use a slightly different approach https://github.com/OSGeo/gdal/blob/master/swig/python/gdal-utils/osgeo_utils/samples/validate_cloud_optimized_geotiff.py#L197C13-L199 using the
I'm not really answering your question, but as a user of |
Beta Was this translation helpful? Give feedback.
-
A related PR #3015 would change |
Beta Was this translation helpful? Give feedback.
-
I'm reconsidering the usefulness of a dataset's
is_tiled
property. When creating a new GeoTIFF, we must use theTILED=TRUE
driver creation option because stripped TIFFs are the default. But GDAL, on which Rasterio is built, doesn't have a universal concept of whether a dataset is tiled or not. GDAL dataset or band objects don't have an "is tiled" attribute. Runninggdalinfo
on a GeoTIFF prints something likeBand 1 Block=791x3 Type=Byte, ColorInterp=Red
(from Rasterio'sRGB.byte.tif
) but does not say whether the dataset is tiled or stripped. GDAL knows about "block size" and that's it. Internally, GDAL rarely tests whether datasets are tiled or not, and when it does it is not much more than a comparison of block width to dataset width.Whether a dataset is tiled or not, it's possible to iterate over chunks of it that are described by the
block_shapes
property. Does anyone have a use case where it matters if these chunks are tiles or strips?Beta Was this translation helpful? Give feedback.
All reactions