"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/core/raster/qgscolorrampshader.cpp" between
QGIS-final-3_10_5.tar.gz and QGIS-final-3_10_6.tar.gz

About: QGIS (Quantum GIS) is a Geographic Information System that supports vector, raster, and database formats. Long-term release (3.10.x series).

qgscolorrampshader.cpp  (QGIS-final-3_10_5):qgscolorrampshader.cpp  (QGIS-final-3_10_6)
skipping to change at line 206 skipping to change at line 206
} }
else // for other classification modes interpolate colors linearly else // for other classification modes interpolate colors linearly
{ {
if ( classes < 2 ) if ( classes < 2 )
return; // < 2 classes is not useful, shouldn't happen, but if it happens save it from crashing return; // < 2 classes is not useful, shouldn't happen, but if it happens save it from crashing
if ( classificationMode() == Quantile ) if ( classificationMode() == Quantile )
{ {
// Quantile // Quantile
if ( band < 0 || !input ) if ( band < 0 || !input )
return; // quantile classificationr requires a valid band, minMaxOrigin, and input return; // quantile classification requires a valid band, minMaxOrigin, and input
double cut1 = std::numeric_limits<double>::quiet_NaN(); double cut1 = std::numeric_limits<double>::quiet_NaN();
double cut2 = std::numeric_limits<double>::quiet_NaN(); double cut2 = std::numeric_limits<double>::quiet_NaN();
int sampleSize = 250000; // Note: the sample size in other parts of QGIS appears to be 250000, it i
s ten times here.
const int sampleSize = 250000 * 10;
// set min and max from histogram, used later to calculate number of decim als to display // set min and max from histogram, used later to calculate number of decim als to display
input->cumulativeCut( band, 0.0, 1.0, min, max, extent, sampleSize ); input->cumulativeCut( band, 0.0, 1.0, min, max, extent, sampleSize );
entryValues.reserve( classes ); entryValues.reserve( classes );
if ( discrete ) if ( discrete )
{ {
double intervalDiff = 1.0 / ( classes ); double intervalDiff = 1.0 / ( classes );
for ( int i = 1; i < classes; ++i ) for ( int i = 1; i < classes; ++i )
{ {
 End of changes. 2 change blocks. 
2 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)