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

[gdal-dev] WMTS huge difference in performance - cache issue

2024-06-28 Thread MichaƂ Kowalczuk via gdal-dev
Hi, I have two sample WMTS servers. The first is a Polish geoportal: https://mapy.geoportal.gov.pl/wss/service/WMTS/guest/wmts/G2_MOBILE_500 and the second is German: https://basemap.de/dienste/wmts_capabilities_web_raster.xml Both work well in QGIS. I use C API for creating bitmaps in my area of i