Re: [gdal-dev] Detecting SPARSE rasters

2024-06-28 Thread Even Rouault via gdal-dev
Jon, Recommended solution: use GDALRasterBand::GetDataCoverageStatus() with nXOff, nYOff, nXSize, nYSize matching tile offset and size and check forGDAL_DATA_COVERAGE_STATUS_EMPTY. Cf https://gdal.org/development/rfc/rfc63_sparse_datasets_improvements.html (undocumented solution, mostly used

[gdal-dev] Detecting SPARSE rasters

2024-06-28 Thread Jon Morris via gdal-dev
We usually use the SPARSE_OK option when creating GTiffs, but as a lot of our clients use ArcGIS, we need to ensure that the sparse option is not used for client deliverables. After a tiff has been created though, it's not easy to tell whether it is sparse or not. Is there an easy way of detecti