Closed wonder-sk closed 3 years ago
Hi @wonder-sk , I think it will be better if we don't put the attributes that has the equal min & max values in the UI in the first place. What do you think?
@NEDJIMAbelgacem I think that's potentially limiting -- if we have situations where the stats are missing (or incorrect) then the user would never get a choice to pick that attribute and manually set the min/max values
The fix is going to sit somewhere in QgsColorRampShader::classifyColorRamp
Agreed with Nyall
I went with the lazy way instead of messing with QgsColorRampShader :')
If the minimum and maximum value is the same, then no classes are generated in the "attribute by ramp" renderer and as a result nothing gets rendered in map canvas. This is confusing for the user - it would be better to generate a single class so that at least something gets rendered.