Bug report #12581

Styles for High-precision Raster Layers

Added by Michael Treglia over 7 years ago. Updated over 3 years ago.

Affected QGIS version:2.8.1 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:end of life
Crashes QGIS or corrupts data:No Copied to github as #:20706


When trying to use Singleband Pseudocolor rendering for a raster with very small-value, albeit high precision variables, applying the style fails. I'll note that upon import of the data, the Singleband Gray render type works fine.

Through testing, it seems that the module only has 16 bit variables, however sometimes rasters are higher precision than that allows. The particular raster I was working with was a kernel density surface (created in R), and the values were all extremely small (ranging 0 - 6.4773e-10). When applying a style, even after setting the value ranges for each color by hand, the entire surface appeared as a single color.

Multiplying the layer by 1000000 solved this problem, but having built-in capability to deal with such high precision would be great. Thus, it would be great to have higher-precision value-setting available for raster styles.


#1 Updated by Giovanni Manghi over 5 years ago

  • Easy fix? set to No
  • Regression? set to No

#2 Updated by Giovanni Manghi over 3 years ago

  • Resolution set to end of life
  • Status changed from Open to Closed

Also available in: Atom PDF