[QGIS-Developer] Does QGIS utilize the statistics of cloud optimized GeoTIFF?

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Wed Jan 8 11:56:04 PST 2020


Hi,

QGIS is setting the default contrast stretch reasonably If I read a GeoTIFF file from a local file. Statistics are included in the image through the GDAL tags
Tag 42112: <GDALMetadata>
  <Item name="STATISTICS_MAXIMUM" sample="0">0</Item>
  <Item name="STATISTICS_MEAN" sample="0">-10.126687384969</Item>
  <Item name="STATISTICS_MINIMUM" sample="0">-71.313484191895</Item>
  <Item name="STATISTICS_STDDEV" sample="0">9.6992444829123</Item>
  <Item name="STATISTICS_VALID_PERCENT" sample="0">11.53</Item>
</GDALMetadata>

However, if I open the same file through http the image opens with an estimated range between -12153 and 909.  Forcing QGIS to read the whole raster for finding the proper data range with the symbology settings is very slow. Does QGIS even try to find the existing statistics when image is  opened or is something going wrong with this URL:
http://latuviitta.kapsi.fi/data/jarvi_dem/saimaa_dem.tif?

-Jukka Rahkonen-

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20200108/efbaf50b/attachment.html>


More information about the QGIS-Developer mailing list