mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-05 00:09:32 -04:00
-Linear interpolation is a better default than Exact for palette images
git-svn-id: http://svn.osgeo.org/qgis/trunk@9268 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
8a556f5adb
commit
4af184e49c
@ -2713,7 +2713,7 @@ void QgsRasterLayerProperties::on_pbtnLoadColorMapFromBand_clicked()
|
||||
if ( mRasterLayer->readColorTable( cboxColorMapBand->currentIndex() + 1, &myColorRampList ) )
|
||||
{
|
||||
populateColorMapTable( myColorRampList );
|
||||
cboxColorInterpolation->setCurrentIndex( cboxColorInterpolation->findText( tr( "Exact" ) ) );
|
||||
cboxColorInterpolation->setCurrentIndex( cboxColorInterpolation->findText( tr( "Linear" ) ) );
|
||||
QgsDebugMsg( "Color map loaded" );
|
||||
}
|
||||
else
|
||||
|
@ -565,7 +565,7 @@ bool QgsRasterLayer::readFile( QString const & fileName )
|
||||
//Set up a new color ramp shader
|
||||
setColorShadingAlgorithm( COLOR_RAMP );
|
||||
QgsColorRampShader* myColorRampShader = ( QgsColorRampShader* ) mRasterShader->getRasterShaderFunction();
|
||||
myColorRampShader->setColorRampType( QgsColorRampShader::EXACT );
|
||||
myColorRampShader->setColorRampType( QgsColorRampShader::INTERPOLATED );
|
||||
myColorRampShader->setColorRampItemList( *getColorTable(1) );
|
||||
}
|
||||
else if ( rasterLayerType == MULTIBAND )
|
||||
|
Loading…
x
Reference in New Issue
Block a user